filter factory in working shape, see example in test_filer_factory.cpp
[metaproxy-moved-to-github.git] / src / test_filter_frontend_net.cpp
index 9b36c66..9969b21 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: test_filter_frontend_net.cpp,v 1.9 2005-10-26 10:21:03 marc Exp $
+/* $Id: test_filter_frontend_net.cpp,v 1.11 2005-10-29 22:23:36 marc Exp $
    Copyright (c) 2005, Index Data.
 
 %LICENSE%
@@ -42,6 +42,9 @@ public:
         }
         return package.move();
     };
+    const std::string type() const {
+        return "FilterInit";
+    };
 };
 
 
@@ -67,7 +70,7 @@ BOOST_AUTO_TEST_CASE( test_filter_frontend_net_2 )
 
             FilterInit tf;
 
-           router.rule(tf);
+           router.append(tf);
 
             // Create package with Z39.50 init request in it
            yp2::Package pack;
@@ -112,11 +115,11 @@ BOOST_AUTO_TEST_CASE( test_filter_frontend_net_3 )
             ports.insert(ports.begin(), "unix:socket");
             filter_front.ports() = ports;
             filter_front.listen_duration() = 1;  // listen a short time only
-           router.rule(filter_front);
+           router.append(filter_front);
 
             // put in a backend
             FilterInit filter_init;
-           router.rule(filter_init);
+           router.append(filter_init);
 
            yp2::Package pack;