X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Ftest_filter1.cpp;h=2983c8aee6470a0c51e20c858e2669bc5b67c54f;hb=d50228aa34df04bcef967019f584437d058368d2;hp=1d1b02b2d3a0c88fbc41fa554624d1f2a94343dc;hpb=83ff1cfb6e933cc70a5c3c8f331f92c941325188;p=metaproxy-moved-to-github.git diff --git a/src/test_filter1.cpp b/src/test_filter1.cpp index 1d1b02b..2983c8a 100644 --- a/src/test_filter1.cpp +++ b/src/test_filter1.cpp @@ -1,27 +1,22 @@ +#include "config.hpp" #include #include + #include "filter.hpp" -//#include "router.hpp" -//#include "package.hpp" #define BOOST_AUTO_TEST_MAIN #include -//#include -//#include - using namespace boost::unit_test; class TFilter: public yp2::Filter { public: - yp2::Package & process(yp2::Package & package) const { - return package; - }; + void process(yp2::Package & package) const {}; }; -BOOST_AUTO_TEST_CASE( test1 ) +BOOST_AUTO_TEST_CASE( test_filter1 ) { try{ TFilter filter; @@ -34,10 +29,10 @@ BOOST_AUTO_TEST_CASE( test1 ) BOOST_CHECK(filter.name() == "filter1 rename"); } - catch(std::runtime_error &e ){ - BOOST_CHECK (true); - } - catch ( ...) { + //catch(std::runtime_error &e ){ + // BOOST_CHECK (true); + //} + catch ( ... ) { BOOST_CHECK (false); } }