From: Robert L. <rle...@us...> - 2007-03-23 11:03:50
|
Update of /cvsroot/ccmtools/ccmtools/test/CppGenerator/facet_types/impl In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv17271/test/CppGenerator/facet_types/impl Modified Files: _check_witout_mirror.cc Log Message: C++: the local home adapter has no longer a dependency to the home's implementation Index: _check_witout_mirror.cc =================================================================== RCS file: /cvsroot/ccmtools/ccmtools/test/CppGenerator/facet_types/impl/_check_witout_mirror.cc,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** _check_witout_mirror.cc 5 Jan 2007 14:17:28 -0000 1.8 --- _check_witout_mirror.cc 23 Mar 2007 11:03:45 -0000 1.9 *************** *** 1,4 **** /*** ! * CCM Tools Test Client * * This file was automatically generated by the CCM Tools. --- 1,4 ---- /*** ! * CCM Tools Test Client * * This file was automatically generated by the CCM Tools. *************** *** 6,11 **** * * This test client is part of the mirror component test concept. For each ! * component a corresponding mirror component will be instantiated. ! * All component ports will be connected to the mirror component's ports. * Additionally, developers can add some testing code to validate supported * interfaces as well as component attribute access. --- 6,11 ---- * * This test client is part of the mirror component test concept. For each ! * component a corresponding mirror component will be instantiated. ! * All component ports will be connected to the mirror component's ports. * Additionally, developers can add some testing code to validate supported * interfaces as well as component attribute access. *************** *** 17,20 **** --- 17,21 ---- #include <Components/ccmtools.h> + #include <TestHome_entry.h> #include <TestHome_gen.h> *************** *** 34,48 **** } ! try { TestHome::SmartPtr myTestHome(dynamic_cast<TestHome*>( homeFinder->find_home_by_name("TestHome").ptr())); ! Test::SmartPtr myTest; myTest = myTestHome->create(); ! myTest->configuration_complete(); ! { TypeTest::SmartPtr type_test; type_test = myTest->provide_type_test(); --- 35,49 ---- } ! try { TestHome::SmartPtr myTestHome(dynamic_cast<TestHome*>( homeFinder->find_home_by_name("TestHome").ptr())); ! Test::SmartPtr myTest; myTest = myTestHome->create(); ! myTest->configuration_complete(); ! { TypeTest::SmartPtr type_test; type_test = myTest->provide_type_test(); *************** *** 53,57 **** assert(long_r == 3+7); } ! { TypeTest::SmartPtr type_test; type_test = myTest->provide_type_test(); --- 54,58 ---- assert(long_r == 3+7); } ! { TypeTest::SmartPtr type_test; type_test = myTest->provide_type_test(); *************** *** 62,66 **** assert(long_r == 3+7); } ! { TypeTest::SmartPtr type_test; type_test = myTest->provide_type_test(); --- 63,67 ---- assert(long_r == 3+7); } ! { TypeTest::SmartPtr type_test; type_test = myTest->provide_type_test(); *************** *** 73,95 **** myTest->remove(); ! } ! catch ( Components::HomeNotFound ) { cout << "DEPLOYMENT ERROR: can't find a home!" << endl; return -1; ! } ! catch ( Components::NotImplemented& e ) { ! cout << "DEPLOYMENT ERROR: function not implemented: " << e.what ( ) << endl; return -1; ! } ! catch ( Components::InvalidName& e ) { ! cout << "DEPLOYMENT ERROR: invalid name during connection: " << e.what ( ) << endl; return -1; } ! catch ( ... ) { cout << "DEPLOYMENT ERROR: there is something wrong!" << endl; --- 74,96 ---- myTest->remove(); ! } ! catch ( Components::HomeNotFound ) { cout << "DEPLOYMENT ERROR: can't find a home!" << endl; return -1; ! } ! catch ( Components::NotImplemented& e ) { ! cout << "DEPLOYMENT ERROR: function not implemented: " << e.what ( ) << endl; return -1; ! } ! catch ( Components::InvalidName& e ) { ! cout << "DEPLOYMENT ERROR: invalid name during connection: " << e.what ( ) << endl; return -1; } ! catch ( ... ) { cout << "DEPLOYMENT ERROR: there is something wrong!" << endl; *************** *** 98,102 **** error = undeploy_TestHome("TestHome"); ! if(error) { cerr << "TEARDOWN ERROR: Can't undeploy component homes!" << endl; --- 99,103 ---- error = undeploy_TestHome("TestHome"); ! if(error) { cerr << "TEARDOWN ERROR: Can't undeploy component homes!" << endl; |