X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Ftest_filter_sru_to_z3950.cpp;h=7ea132b207377cf86ba14b5574c2f7cba97123ae;hb=483f47b95650cf92da0c9cc08363c2d761e78cdc;hp=dec6f98adf9ef301821e8394dbb689aa2e9e578c;hpb=e6d572ef110d14fa55115021505b808620457bd3;p=metaproxy-moved-to-github.git diff --git a/src/test_filter_sru_to_z3950.cpp b/src/test_filter_sru_to_z3950.cpp index dec6f98..7ea132b 100644 --- a/src/test_filter_sru_to_z3950.cpp +++ b/src/test_filter_sru_to_z3950.cpp @@ -1,5 +1,5 @@ /* This file is part of Metaproxy. - Copyright (C) 2005-2010 Index Data + Copyright (C) 2005-2013 Index Data Metaproxy is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -20,7 +20,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include "filter_sru_to_z3950.hpp" #include #include "sru_util.hpp" -#include "router_chain.hpp" +#include #include #include @@ -39,7 +39,7 @@ using namespace mp::util; BOOST_AUTO_TEST_CASE( test_filter_sru_to_z3950_1 ) { - try + try { mp::filter::SRUtoZ3950 f_sru_to_z3950; } @@ -50,17 +50,17 @@ BOOST_AUTO_TEST_CASE( test_filter_sru_to_z3950_1 ) BOOST_AUTO_TEST_CASE( test_filter_sru_to_z3950_2 ) { - try + try { mp::RouterChain router; - + mp::filter::SRUtoZ3950 f_sru_to_z3950; - + router.append(f_sru_to_z3950); //check_sru_to_z3950_init(router); - //check_sru_to_z3950_search(router, - // "@attrset Bib-1 @attr 1=4 the", + //check_sru_to_z3950_search(router, + // "@attrset Bib-1 @attr 1=4 the", // "@attrset Bib-1 @attr 1=4 the"); } @@ -72,20 +72,20 @@ BOOST_AUTO_TEST_CASE( test_filter_sru_to_z3950_2 ) // BOOST_AUTO_TEST_CASE( test_filter_sru_to_z3950_3 ) // { - -// try + +// try // { // mp::RouterChain router; - -// std::string xmlconf = + +// std::string xmlconf = // "\n" // "\n" // "\n" // ; - + // //std::cout << xmlconf << std::endl; // // reading and parsing XML conf @@ -96,17 +96,17 @@ BOOST_AUTO_TEST_CASE( test_filter_sru_to_z3950_2 ) // // creating and configuring filter // mp::filter::SRUtoZ3950 f_sru_to_z3950; // f_sru_to_z3950.configure(root_element); - + // // remeber to free XML DOM // xmlFreeDoc(doc); - + // // add only filter to router // router.append(f_sru_to_z3950); // // start testing // check_sru_to_z3950_init(router); -// check_sru_to_z3950_search(router, -// "@attrset Bib-1 @attr 1=4 the", +// check_sru_to_z3950_search(router, +// "@attrset Bib-1 @attr 1=4 the", // "@attrset Bib-1 @attr 1=4 the"); // }