Implemented FilterLog filter
[metaproxy-moved-to-github.git] / src / test_filter1.cpp
index d1142a2..592e6ce 100644 (file)
@@ -1,4 +1,5 @@
 
+#include "config.hpp"
 #include <iostream>
 #include <stdexcept>
 
@@ -11,9 +12,7 @@ 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 {};
 };
     
 
@@ -30,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);
     }