Use namespace yp2::filter for filters .. Rename filters from
[metaproxy-moved-to-github.git] / src / test_filter1.cpp
index b78a18a..02b9fa7 100644 (file)
 
 using namespace boost::unit_test;
 
-class TFilter: public yp2::Filter {
+class TFilter: public yp2::filter::Base {
 public:
-    yp2::Package & process(yp2::Package & package) const {
-       return package;
-    };
+    void process(yp2::Package & package) const {};
 };
     
 
@@ -31,9 +29,6 @@ BOOST_AUTO_TEST_CASE( test_filter1 )
         
         BOOST_CHECK(filter.name() == "filter1 rename");
     }
-    //catch(std::runtime_error &e ){
-    //    BOOST_CHECK (true);
-    //}
     catch ( ... ) {
         BOOST_CHECK (false);
     }