hacking filter factory, need to go to meeting and stop here, does not work yet
[metaproxy-moved-to-github.git] / src / test_filter_factory.cpp
1 /* $Id: test_filter_factory.cpp,v 1.1 2005-10-28 10:35:30 marc Exp $
2    Copyright (c) 2005, Index Data.
3
4 %LICENSE%
5  */
6
7
8 #include <iostream>
9 #include <stdexcept>
10
11 #include "config.hpp"
12 #include "filter.hpp"
13 #include "filter_factory.hpp"
14
15
16 #define BOOST_AUTO_TEST_MAIN
17 #include <boost/test/auto_unit_test.hpp>
18
19 using namespace boost::unit_test;
20
21 class XFilter: public yp2::filter::Base {
22 public:
23     void process(yp2::Package & package) const {};
24 };
25
26 class YFilter: public yp2::filter::Base {
27 public:
28     void process(yp2::Package & package) const {};
29 };
30     
31
32 BOOST_AUTO_TEST_CASE( test_router_flexml_1 )
33 {
34     try{
35         
36         yp2::filter::FilterFactory  ffactory;
37         
38
39         BOOST_CHECK (true);
40
41         //BOOST_CHECK_EQUAL(filter.name(), std::string("filter1"));
42         
43     }
44     catch ( ... ) {
45         BOOST_CHECK (false);
46     }
47 }
48
49 /*
50  * Local variables:
51  * c-basic-offset: 4
52  * indent-tabs-mode: nil
53  * c-file-style: "stroustrup"
54  * End:
55  * vim: shiftwidth=4 tabstop=8 expandtab
56  */