]> SALOME platform Git repositories - modules/yacs.git/blob - src/LifeCycleCORBA/Test/LifeCycleCORBATest.hxx
Salome HOME
401a039789ea79101275041a73deb567aac6dfbf
[modules/yacs.git] / src / LifeCycleCORBA / Test / LifeCycleCORBATest.hxx
1 // Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
3 // 
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.
8 // 
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.
13 //
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
17 //
18 // See http://www.salome-platform.org/
19 //
20
21 #ifndef _LIFECYCLECORBATEST_HXX_
22 #define _LIFECYCLECORBATEST_HXX_
23
24 #include <cppunit/extensions/HelperMacros.h>
25
26 #include <SALOMEconfig.h>
27 #include CORBA_CLIENT_HEADER(SALOME_Component)
28 #include CORBA_CLIENT_HEADER(SALOME_TestComponent)
29 #include "SALOME_NamingService.hxx"
30
31 class LifeCycleCORBATest : public CppUnit::TestFixture
32 {
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_ );
50 //   CPPUNIT_TEST(  );
51 //   CPPUNIT_TEST(  );
52   CPPUNIT_TEST_SUITE_END();
53
54 public:
55
56   void setUp();
57   void tearDown();
58
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_();
75
76 protected:
77   std::string GetRemoteHost();
78   CORBA::ORB_var _orb;
79   SALOME_NamingService _NS;
80 };
81
82 #endif