The configure method takes test_only flag so we can avoid
[metaproxy-moved-to-github.git] / src / test_filter_record_transform.cpp
index ec966c9..8751b30 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: test_filter_record_transform.cpp,v 1.6 2007-05-09 21:23:09 adam Exp $
+/* $Id: test_filter_record_transform.cpp,v 1.8 2008-02-20 15:07:53 adam Exp $
    Copyright (c) 2005-2007, Index Data.
 
 This file is part of Metaproxy.
@@ -31,6 +31,7 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 //#include <stdexcept>
 
 #define BOOST_AUTO_TEST_MAIN
+#define BOOST_TEST_DYN_LINK
 #include <boost/test/auto_unit_test.hpp>
 
 #include <iostream>
@@ -43,7 +44,7 @@ namespace mp = metaproxy_1;
 
 
 
-BOOST_AUTO_UNIT_TEST( test_filter_record_transform_1 )
+BOOST_AUTO_TEST_CASE( test_filter_record_transform_1 )
 {
     try 
     {
@@ -54,7 +55,7 @@ BOOST_AUTO_UNIT_TEST( test_filter_record_transform_1 )
     }
 }
 
-BOOST_AUTO_UNIT_TEST( test_filter_record_transform_2 )
+BOOST_AUTO_TEST_CASE( test_filter_record_transform_2 )
 {
     try 
     {
@@ -76,7 +77,7 @@ BOOST_AUTO_UNIT_TEST( test_filter_record_transform_2 )
 }
 
 
-BOOST_AUTO_UNIT_TEST( test_filter_record_transform_3 )
+BOOST_AUTO_TEST_CASE( test_filter_record_transform_3 )
 {
     
 
@@ -110,7 +111,7 @@ BOOST_AUTO_UNIT_TEST( test_filter_record_transform_3 )
 
         // creating and configuring filter
         mp::filter::RecordTransform f_rec_trans;
-        f_rec_trans.configure(root_element);
+        f_rec_trans.configure(root_element, true);
         
         // remeber to free XML DOM
         xmlFreeDoc(doc);