std::string type() function taken out of all filter classes again
[metaproxy-moved-to-github.git] / src / test_filter1.cpp
1 /* $Id: test_filter1.cpp,v 1.13 2005-10-31 09:40:18 marc Exp $
2    Copyright (c) 2005, Index Data.
3
4 %LICENSE%
5  */
6
7 #include "config.hpp"
8 #include <iostream>
9 #include <stdexcept>
10
11 #include "filter.hpp"
12
13 #define BOOST_AUTO_TEST_MAIN
14 #include <boost/test/auto_unit_test.hpp>
15
16 using namespace boost::unit_test;
17
18 class TFilter: public yp2::filter::Base {
19 public:
20     void process(yp2::Package & package) const {};
21 };
22     
23
24 BOOST_AUTO_TEST_CASE( test_filter1 )
25 {
26     try{
27         TFilter filter;
28
29         
30         BOOST_CHECK (sizeof(filter) > 0);
31     }
32     catch ( ... ) {
33         BOOST_CHECK (false);
34     }
35 }
36
37 /*
38  * Local variables:
39  * c-basic-offset: 4
40  * indent-tabs-mode: nil
41  * c-file-style: "stroustrup"
42  * End:
43  * vim: shiftwidth=4 tabstop=8 expandtab
44  */