Fixed two tests . Bug #1589.
[metaproxy-moved-to-github.git] / src / test_filter1.cpp
1 /* $Id: test_filter1.cpp,v 1.19 2007-11-02 17:30:04 adam Exp $
2    Copyright (c) 2005-2007, Index Data.
3
4 This file is part of Metaproxy.
5
6 Metaproxy is free software; you can redistribute it and/or modify it under
7 the terms of the GNU General Public License as published by the Free
8 Software Foundation; either version 2, or (at your option) any later
9 version.
10
11 Metaproxy is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14 for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with Metaproxy; see the file LICENSE.  If not, write to the
18 Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
19 02111-1307, USA.
20  */
21
22 #include "config.hpp"
23 #include <iostream>
24 #include <stdexcept>
25
26 #include "filter.hpp"
27
28 #define BOOST_AUTO_TEST_MAIN
29 #define BOOST_TEST_DYN_LINK
30 #include <boost/test/auto_unit_test.hpp>
31
32 using namespace boost::unit_test;
33 namespace mp = metaproxy_1;
34
35 class TFilter: public mp::filter::Base {
36 public:
37     void process(mp::Package & package) const {};
38 };
39     
40
41 BOOST_AUTO_TEST_CASE( test_filter1 )
42 {
43     try{
44         TFilter filter;
45
46         
47         BOOST_CHECK (sizeof(filter) > 0);
48     }
49     catch ( ... ) {
50         BOOST_CHECK (false);
51     }
52 }
53
54 /*
55  * Local variables:
56  * c-basic-offset: 4
57  * indent-tabs-mode: nil
58  * c-file-style: "stroustrup"
59  * End:
60  * vim: shiftwidth=4 tabstop=8 expandtab
61  */