Add LICENSE file and Refer to it from the source. Include license material
[metaproxy-moved-to-github.git] / src / test_filter1.cpp
1 /* $Id: test_filter1.cpp,v 1.16 2006-06-10 14:29:12 adam Exp $
2    Copyright (c) 2005-2006, Index Data.
3
4    See the LICENSE file for details
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 namespace mp = metaproxy_1;
18
19 class TFilter: public mp::filter::Base {
20 public:
21     void process(mp::Package & package) const {};
22 };
23     
24
25 BOOST_AUTO_UNIT_TEST( test_filter1 )
26 {
27     try{
28         TFilter filter;
29
30         
31         BOOST_CHECK (sizeof(filter) > 0);
32     }
33     catch ( ... ) {
34         BOOST_CHECK (false);
35     }
36 }
37
38 /*
39  * Local variables:
40  * c-basic-offset: 4
41  * indent-tabs-mode: nil
42  * c-file-style: "stroustrup"
43  * End:
44  * vim: shiftwidth=4 tabstop=8 expandtab
45  */