X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=src%2Ftest_filter_rewrite.cpp;h=374950975b1354882aed8fd423324e613a49a2f0;hb=dd17e564b39fa38a3d611853a3b13dacdff3d070;hp=90c17d666d66da7480cd893edd07b21704e29278;hpb=df9b11da1202e8af0eb10633a44405e45c94800e;p=metaproxy-moved-to-github.git
diff --git a/src/test_filter_rewrite.cpp b/src/test_filter_rewrite.cpp
index 90c17d6..3749509 100644
--- a/src/test_filter_rewrite.cpp
+++ b/src/test_filter_rewrite.cpp
@@ -42,14 +42,14 @@ namespace mp = metaproxy_1;
* The global testconfig is commented out, as it won't even compile
* on old Centos5 machines
struct TestConfig {
- TestConfig()
+ TestConfig()
{
- std::cout << "global setup\n";
+ std::cout << "global setup\n";
yaz_log_init_level(YLOG_ALL);
}
- ~TestConfig()
- {
- std::cout << "global teardown\n";
+ ~TestConfig()
+ {
+ std::cout << "global teardown\n";
}
};
@@ -63,23 +63,38 @@ BOOST_AUTO_TEST_CASE( test_filter_rewrite_1 )
std::cout << "Running non-xml config test case" << std::endl;
mp::RouterChain router;
mp::filter::HttpRewrite fhr;
-
+
std::string xmlconf =
"\n"
"
Welcome to our website. It doesn't make it easy to get pro"
"xified"
""
" An absolute link"
- ""
" An absolute link"
- "\n"
- " Welcome to our website. It doesn't make it easy to get pro"
- "xified"
- ""
- " An absolute link"
- ""
- ""
- ""
- ""
- " Welcome to our website. It doesn't make it easy to get pro"
- "xified"
- ""
- " An absolute link"
- "