Salome HOME
e7c8bf8ecf21cedd8cd471926fc16ceeb1e002c9
[modules/kernel.git] / src / LifeCycleCORBA / Test / LifeCycleCORBATest.hxx
1 //  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 //  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
6 //  This library is free software; you can redistribute it and/or
7 //  modify it under the terms of the GNU Lesser General Public
8 //  License as published by the Free Software Foundation; either
9 //  version 2.1 of the License.
10 //
11 //  This library is distributed in the hope that it will be useful,
12 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
13 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 //  Lesser General Public License for more details.
15 //
16 //  You should have received a copy of the GNU Lesser General Public
17 //  License along with this library; if not, write to the Free Software
18 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 //
20 //  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 #ifndef _LIFECYCLECORBATEST_HXX_
23 #define _LIFECYCLECORBATEST_HXX_
24
25 #include <cppunit/extensions/HelperMacros.h>
26
27 #include <SALOMEconfig.h>
28 #include CORBA_CLIENT_HEADER(SALOME_Component)
29 #include CORBA_CLIENT_HEADER(SALOME_TestComponent)
30 #include "SALOME_NamingService.hxx"
31
32 class LifeCycleCORBATest : public CppUnit::TestFixture
33 {
34   CPPUNIT_TEST_SUITE( LifeCycleCORBATest );
35   CPPUNIT_TEST( testFindOrLoad_Component_LaunchContainer );
36   CPPUNIT_TEST( testFindOrLoad_Component_SameInstance );
37   CPPUNIT_TEST( testFindOrLoad_Component_PythonInCppContainer );
38   CPPUNIT_TEST( testFindOrLoad_Component_PythonSameInstance );
39   CPPUNIT_TEST( testFindOrLoad_Component_UnknownInCatalog );
40   CPPUNIT_TEST( testFindOrLoad_Component_LaunchContainerHostname );
41   CPPUNIT_TEST( testFindOrLoad_Component_SameContainer );
42   CPPUNIT_TEST( testFindOrLoad_Component_UnknownMachine );
43   CPPUNIT_TEST( testFindOrLoad_Component_ParamsEmpty );
44   CPPUNIT_TEST( testFindOrLoad_Component_ParamsLocalContainer );
45   CPPUNIT_TEST( testFindOrLoad_Component_ParamsContainerName );
46   CPPUNIT_TEST( testFindOrLoad_Component_RemoteComputer );
47   CPPUNIT_TEST( testFindOrLoad_Component_ParamsRemoteComputer );
48   CPPUNIT_TEST( testFindOrLoad_Component_ParamsRemoteComputer2 );
49   CPPUNIT_TEST( testgetLocalFile_localComputer );
50   CPPUNIT_TEST( testgetLocalFile_remoteComputer );
51 //   CPPUNIT_TEST( testFindOrLoad_Component_ );
52 //   CPPUNIT_TEST(  );
53 //   CPPUNIT_TEST(  );
54   CPPUNIT_TEST_SUITE_END();
55
56 public:
57
58   void setUp();
59   void tearDown();
60
61   void testFindOrLoad_Component_LaunchContainer();
62   void testFindOrLoad_Component_SameInstance();
63   void testFindOrLoad_Component_PythonInCppContainer();
64   void testFindOrLoad_Component_PythonSameInstance();
65   void testFindOrLoad_Component_UnknownInCatalog();
66   void testFindOrLoad_Component_LaunchContainerHostname();
67   void testFindOrLoad_Component_SameContainer();
68   void testFindOrLoad_Component_UnknownMachine();
69   void testFindOrLoad_Component_ParamsEmpty();
70   void testFindOrLoad_Component_ParamsLocalContainer();
71   void testFindOrLoad_Component_ParamsContainerName();
72   void testFindOrLoad_Component_RemoteComputer();
73   void testFindOrLoad_Component_ParamsRemoteComputer();
74   void testFindOrLoad_Component_ParamsRemoteComputer2();
75   void testgetLocalFile_localComputer();
76   void testgetLocalFile_remoteComputer();
77 //   void testFindOrLoad_Component_();
78 //   void testFindOrLoad_Component_();
79
80 protected:
81   std::string GetRemoteHost();
82   CORBA::ORB_var _orb;
83   SALOME_NamingService _NS;
84 };
85
86 #endif