Salome HOME
6dbaed47d26b9e2b735fd25ac79195cab37f15c6
[modules/kernel.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/ or email : webmaster.salome@opencascade.com
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( testgetLocalFile_localComputer );
49   CPPUNIT_TEST( testgetLocalFile_remoteComputer );
50 //   CPPUNIT_TEST( testFindOrLoad_Component_ );
51 //   CPPUNIT_TEST(  );
52 //   CPPUNIT_TEST(  );
53   CPPUNIT_TEST_SUITE_END();
54
55 public:
56
57   void setUp();
58   void tearDown();
59
60   void testFindOrLoad_Component_LaunchContainer();
61   void testFindOrLoad_Component_SameInstance();
62   void testFindOrLoad_Component_PythonInCppContainer();
63   void testFindOrLoad_Component_PythonSameInstance();
64   void testFindOrLoad_Component_UnknownInCatalog();
65   void testFindOrLoad_Component_LaunchContainerHostname();
66   void testFindOrLoad_Component_SameContainer();
67   void testFindOrLoad_Component_UnknownMachine();
68   void testFindOrLoad_Component_ParamsEmpty();
69   void testFindOrLoad_Component_ParamsLocalContainer();
70   void testFindOrLoad_Component_ParamsContainerName();
71   void testFindOrLoad_Component_RemoteComputer();
72   void testFindOrLoad_Component_ParamsRemoteComputer();
73   void testFindOrLoad_Component_ParamsRemoteComputer2();
74   void testgetLocalFile_localComputer();
75   void testgetLocalFile_remoteComputer();
76 //   void testFindOrLoad_Component_();
77 //   void testFindOrLoad_Component_();
78
79 protected:
80   std::string GetRemoteHost();
81   CORBA::ORB_var _orb;
82   SALOME_NamingService _NS;
83 };
84
85 #endif