|
From: Robert L. <rle...@us...> - 2007-03-23 11:04:22
|
Update of /cvsroot/ccmtools/ccmtools/test/CppGenerator/supports_inheritance/impl In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv17271/test/CppGenerator/supports_inheritance/impl Modified Files: _check_Test.cc Log Message: C++: the local home adapter has no longer a dependency to the home's implementation Index: _check_Test.cc =================================================================== RCS file: /cvsroot/ccmtools/ccmtools/test/CppGenerator/supports_inheritance/impl/_check_Test.cc,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** _check_Test.cc 5 Jan 2007 14:17:28 -0000 1.3 --- _check_Test.cc 23 Mar 2007 11:03:43 -0000 1.4 *************** *** 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> *************** *** 24,31 **** { cout << ">>>> Start Test Client: " << __FILE__ << endl; ! int error = 0; error = deploy_TestHome("TestHome"); ! if(error) { cerr << "BOOTSTRAP ERROR: Can't deploy component homes!" << endl; --- 25,32 ---- { cout << ">>>> Start Test Client: " << __FILE__ << endl; ! int error = 0; error = deploy_TestHome("TestHome"); ! if(error) { cerr << "BOOTSTRAP ERROR: Can't deploy component homes!" << endl; *************** *** 33,41 **** } ! try { Components::HomeFinder* homeFinder = Components::HomeFinder::Instance(); ! Test::SmartPtr myTest; ! TestHome::SmartPtr myTestHome(dynamic_cast<TestHome*>( homeFinder->find_home_by_name("TestHome").ptr())); --- 34,42 ---- } ! try { Components::HomeFinder* homeFinder = Components::HomeFinder::Instance(); ! Test::SmartPtr myTest; ! TestHome::SmartPtr myTestHome(dynamic_cast<TestHome*>( homeFinder->find_home_by_name("TestHome").ptr())); *************** *** 43,84 **** myTest = myTestHome->create(); myTest->configuration_complete(); ! string str1 = "Hallo to first op()"; long size1 = myTest->op1(str1); assert(size1 == str1.length()); ! string str2 = "Hallo to second op()"; long size2 = myTest->op2(str2); assert(size2 == str2.length()); ! string str3 = "Hallo to third op()"; long size3 = myTest->op3(str3); assert(size3 == str3.length()); ! 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; error = -1; } ! if (error < 0) { return error; --- 44,85 ---- myTest = myTestHome->create(); myTest->configuration_complete(); ! string str1 = "Hallo to first op()"; long size1 = myTest->op1(str1); assert(size1 == str1.length()); ! string str2 = "Hallo to second op()"; long size2 = myTest->op2(str2); assert(size2 == str2.length()); ! string str3 = "Hallo to third op()"; long size3 = myTest->op3(str3); assert(size3 == str3.length()); ! 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; error = -1; } ! if (error < 0) { return error; *************** *** 86,90 **** error = undeploy_TestHome("TestHome"); ! if(error) { cerr << "TEARDOWN ERROR: Can't undeploy component homes!" << endl; --- 87,91 ---- error = undeploy_TestHome("TestHome"); ! if(error) { cerr << "TEARDOWN ERROR: Can't undeploy component homes!" << endl; |