1 // Copyright (C) 2005 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License.
9 // This library is distributed in the hope that it will be useful
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // Lesser General Public License for more details.
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 // See http://www.salome-platform.org/
21 #ifndef _LIFECYCLECORBATEST_HXX_
22 #define _LIFECYCLECORBATEST_HXX_
24 #include <cppunit/extensions/HelperMacros.h>
26 #include <SALOMEconfig.h>
27 #include CORBA_CLIENT_HEADER(SALOME_Component)
28 #include CORBA_CLIENT_HEADER(SALOME_TestComponent)
29 #include "SALOME_NamingService.hxx"
31 class LifeCycleCORBATest : public CppUnit::TestFixture
33 CPPUNIT_TEST_SUITE( LifeCycleCORBATest );
34 CPPUNIT_TEST( testFindOrLoad_Component_LaunchContainer );
35 CPPUNIT_TEST( testFindOrLoad_Component_SameInstance );
36 CPPUNIT_TEST( testFindOrLoad_Component_PythonInCppContainer );
37 CPPUNIT_TEST( testFindOrLoad_Component_PythonSameInstance );
38 CPPUNIT_TEST( testFindOrLoad_Component_UnknownInCatalog );
39 CPPUNIT_TEST( testFindOrLoad_Component_LaunchContainerHostname );
40 CPPUNIT_TEST( testFindOrLoad_Component_SameContainer );
41 CPPUNIT_TEST( testFindOrLoad_Component_UnknownMachine );
42 CPPUNIT_TEST( testFindOrLoad_Component_ParamsEmpty );
43 CPPUNIT_TEST( testFindOrLoad_Component_ParamsLocalContainer );
44 CPPUNIT_TEST( testFindOrLoad_Component_ParamsContainerName );
45 CPPUNIT_TEST( testFindOrLoad_Component_RemoteComputer );
46 CPPUNIT_TEST( testFindOrLoad_Component_ParamsRemoteComputer );
47 CPPUNIT_TEST( testFindOrLoad_Component_ParamsRemoteComputer2 );
48 // CPPUNIT_TEST( testFindOrLoad_Component_ );
49 // CPPUNIT_TEST( testFindOrLoad_Component_ );
52 CPPUNIT_TEST_SUITE_END();
59 void testFindOrLoad_Component_LaunchContainer();
60 void testFindOrLoad_Component_SameInstance();
61 void testFindOrLoad_Component_PythonInCppContainer();
62 void testFindOrLoad_Component_PythonSameInstance();
63 void testFindOrLoad_Component_UnknownInCatalog();
64 void testFindOrLoad_Component_LaunchContainerHostname();
65 void testFindOrLoad_Component_SameContainer();
66 void testFindOrLoad_Component_UnknownMachine();
67 void testFindOrLoad_Component_ParamsEmpty();
68 void testFindOrLoad_Component_ParamsLocalContainer();
69 void testFindOrLoad_Component_ParamsContainerName();
70 void testFindOrLoad_Component_RemoteComputer();
71 void testFindOrLoad_Component_ParamsRemoteComputer();
72 void testFindOrLoad_Component_ParamsRemoteComputer2();
73 // void testFindOrLoad_Component_();
74 // void testFindOrLoad_Component_();
77 std::string GetRemoteHost();
79 SALOME_NamingService _NS;