X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=src%2Ftest_filter_factory.cpp;h=7dfcaaeae6a75977161ea9b153402855ab9664b0;hb=77dee8966dd1304a0fb8540c3fc68d02dc6ce84a;hp=a426867720d7c2848a37c851f202aa4af70906db;hpb=474111be67deb87130a5f0add13df89c89df346a;p=metaproxy-moved-to-github.git diff --git a/src/test_filter_factory.cpp b/src/test_filter_factory.cpp index a426867..7dfcaae 100644 --- a/src/test_filter_factory.cpp +++ b/src/test_filter_factory.cpp @@ -1,4 +1,4 @@ -/* $Id: test_filter_factory.cpp,v 1.4 2005-10-31 09:40:18 marc Exp $ +/* $Id: test_filter_factory.cpp,v 1.6 2005-12-02 12:21:07 adam Exp $ Copyright (c) 2005, Index Data. %LICENSE% @@ -39,13 +39,11 @@ yp2::filter::Base* yfilter_creator(){ } - -//int main(int argc, char **argv) -BOOST_AUTO_TEST_CASE( test_filter_factory_1 ) +BOOST_AUTO_UNIT_TEST( test_filter_factory_1 ) { try { - yp2::filter::FilterFactory ffactory; + yp2::FilterFactory ffactory; XFilter xf; YFilter yf; @@ -75,8 +73,7 @@ BOOST_AUTO_TEST_CASE( test_filter_factory_1 ) BOOST_CHECK(0 != xfilter); BOOST_CHECK(0 != yfilter); - - } + } catch ( ... ) { throw; BOOST_CHECK (false); @@ -85,28 +82,24 @@ BOOST_AUTO_TEST_CASE( test_filter_factory_1 ) std::exit(0); } +// get function - right val in assignment +//std::string name() const { +//return m_name; +// return "Base"; +//} +// set function - left val in assignment +//std::string & name() { +// return m_name; +//} +// set function - can be chained +//Base & name(const std::string & name){ +// m_name = name; +// return *this; +//} - // get function - right val in assignment - //std::string name() const { - //return m_name; - // return "Base"; - //} - - // set function - left val in assignment - //std::string & name() { - // return m_name; - //} - - // set function - can be chained - //Base & name(const std::string & name){ - // m_name = name; - // return *this; - //} - - /* * Local variables: * c-basic-offset: 4