X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Ftest_router_flexml.cpp;h=e6ee8fc0d8443f4794eccda91f1ef32cc38ad2a8;hb=63ea8aedbfd7dc56ab28dbc82c38b4458dcecb68;hp=000ee0b44ffaa823d8dc95270e0cbb475e708e41;hpb=a7bb1a7f8f0c91fa5bc74f712b3e00cb962a0263;p=metaproxy-moved-to-github.git diff --git a/src/test_router_flexml.cpp b/src/test_router_flexml.cpp index 000ee0b..e6ee8fc 100644 --- a/src/test_router_flexml.cpp +++ b/src/test_router_flexml.cpp @@ -1,4 +1,4 @@ -/* $Id: test_router_flexml.cpp,v 1.7 2005-12-08 22:32:58 adam Exp $ +/* $Id: test_router_flexml.cpp,v 1.8 2006-01-04 11:19:04 adam Exp $ Copyright (c) 2005, Index Data. %LICENSE% @@ -10,6 +10,7 @@ #include "filter.hpp" #include "router_flexml.hpp" +#include "filter_factory.hpp" #define BOOST_AUTO_TEST_MAIN #include @@ -30,7 +31,7 @@ BOOST_AUTO_UNIT_TEST( test_router_flexml_1 ) "\n" " \n" " \n" - " \n" + " \n" " 210\n" " \n" " \n" @@ -46,6 +47,14 @@ BOOST_AUTO_UNIT_TEST( test_router_flexml_1 ) "\n"; yp2::RouterFleXML rflexml(xmlconf); } + catch ( yp2::RouterFleXML::XMLError &e) { + std::cout << "XMLError: " << e.what() << "\n"; + BOOST_CHECK (false); + } + catch ( yp2::FilterFactoryException &e) { + std::cout << "FilterFactoryException: " << e.what() << "\n"; + BOOST_CHECK (false); + } catch ( ... ) { BOOST_CHECK (false); } @@ -60,7 +69,7 @@ BOOST_AUTO_UNIT_TEST( test_router_flexml_2 ) "\n" " \n" " \n" - " \n" + " \n" " 210\n"; yp2::RouterFleXML rflexml(xmlconf_invalid); @@ -82,7 +91,7 @@ BOOST_AUTO_UNIT_TEST( test_router_flexml_3 ) "\n" " \n" " \n" - " \n" + " \n" " 210\n" " \n" " \n"