Version: 9.12.0
LifeCycleCORBATest.hxx
Go to the documentation of this file.
1 // Copyright (C) 2007-2023 CEA, EDF, 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, or (at your option) any later version.
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 
23 #ifndef _LIFECYCLECORBATEST_HXX_
24 #define _LIFECYCLECORBATEST_HXX_
25 
26 #include <cppunit/extensions/HelperMacros.h>
27 #include <string>
28 
29 #include <SALOMEconfig.h>
30 #include CORBA_CLIENT_HEADER(SALOME_Component)
31 #include CORBA_CLIENT_HEADER(SALOME_TestComponent)
32 #include "SALOME_NamingService.hxx"
33 
34 #ifdef WIN32
35 # if defined LIFECYCLECORBATEST_EXPORTS || defined LifeCycleCORBATest_EXPORTS
36 # define LIFECYCLECORBATEST_EXPORT __declspec( dllexport )
37 # else
38 # define LIFECYCLECORBATEST_EXPORT __declspec( dllimport )
39 # endif
40 #else
41 # define LIFECYCLECORBATEST_EXPORT
42 #endif
43 
44 class LIFECYCLECORBATEST_EXPORT LifeCycleCORBATest : public CppUnit::TestFixture
45 {
47  CPPUNIT_TEST( testFindOrLoad_Component_LaunchContainer );
48  CPPUNIT_TEST( testFindOrLoad_Component_SameInstance );
49  CPPUNIT_TEST( testFindOrLoad_Component_PythonInCppContainer );
50  CPPUNIT_TEST( testFindOrLoad_Component_PythonSameInstance );
51  CPPUNIT_TEST( testFindOrLoad_Component_UnknownInCatalog );
52  CPPUNIT_TEST( testFindOrLoad_Component_LaunchContainerHostname );
53  CPPUNIT_TEST( testFindOrLoad_Component_SameContainer );
54  CPPUNIT_TEST( testFindOrLoad_Component_UnknownMachine );
55  CPPUNIT_TEST( testFindOrLoad_Component_ParamsEmpty );
56  CPPUNIT_TEST( testFindOrLoad_Component_ParamsLocalContainer );
57  CPPUNIT_TEST( testFindOrLoad_Component_ParamsContainerName );
58 #ifdef SALOME_TEST_REMOTE
59  CPPUNIT_TEST( testFindOrLoad_Component_RemoteComputer );
60  CPPUNIT_TEST( testFindOrLoad_Component_ParamsRemoteComputer );
61  CPPUNIT_TEST( testFindOrLoad_Component_ParamsRemoteComputer2 );
62 #endif
63  CPPUNIT_TEST( testgetLocalFile_localComputer );
64 #ifdef SALOME_TEST_REMOTE
65  CPPUNIT_TEST( testgetLocalFile_remoteComputer );
66 #endif
67 // CPPUNIT_TEST( testFindOrLoad_Component_ );
68 // CPPUNIT_TEST( );
69 // CPPUNIT_TEST( );
71 
72 public:
73 
74  void setUp();
75  void tearDown();
76 
77  void testFindOrLoad_Component_LaunchContainer();
78  void testFindOrLoad_Component_SameInstance();
79  void testFindOrLoad_Component_PythonInCppContainer();
80  void testFindOrLoad_Component_PythonSameInstance();
81  void testFindOrLoad_Component_UnknownInCatalog();
82  void testFindOrLoad_Component_LaunchContainerHostname();
83  void testFindOrLoad_Component_SameContainer();
84  void testFindOrLoad_Component_UnknownMachine();
85  void testFindOrLoad_Component_ParamsEmpty();
86  void testFindOrLoad_Component_ParamsLocalContainer();
87  void testFindOrLoad_Component_ParamsContainerName();
88  void testFindOrLoad_Component_RemoteComputer();
89  void testFindOrLoad_Component_ParamsRemoteComputer();
90  void testFindOrLoad_Component_ParamsRemoteComputer2();
91  void testgetLocalFile_localComputer();
92  void testgetLocalFile_remoteComputer();
93 // void testFindOrLoad_Component_();
94 // void testFindOrLoad_Component_();
95 
96  private:
97  std::string _getTraceFileName();
98 
99 protected:
100  std::string GetRemoteHost();
101  CORBA::ORB_var _orb;
103 };
104 
105 #endif
#define LIFECYCLECORBATEST_EXPORT
Definition: LifeCycleCORBATest.hxx:41
Definition: LifeCycleCORBATest.hxx:45
CORBA::ORB_var _orb
Definition: LifeCycleCORBATest.hxx:101
CPPUNIT_TEST(testFindOrLoad_Component_SameInstance)
CPPUNIT_TEST(testFindOrLoad_Component_PythonSameInstance)
CPPUNIT_TEST(testFindOrLoad_Component_ParamsContainerName)
CPPUNIT_TEST(testFindOrLoad_Component_UnknownInCatalog)
CPPUNIT_TEST(testFindOrLoad_Component_SameContainer)
CPPUNIT_TEST(testFindOrLoad_Component_ParamsLocalContainer)
CPPUNIT_TEST(testgetLocalFile_localComputer)
CPPUNIT_TEST(testFindOrLoad_Component_LaunchContainer)
CPPUNIT_TEST_SUITE(LifeCycleCORBATest)
SALOME_NamingService _NS
Definition: LifeCycleCORBATest.hxx:102
CPPUNIT_TEST(testFindOrLoad_Component_LaunchContainerHostname)
CPPUNIT_TEST(testFindOrLoad_Component_UnknownMachine)
CPPUNIT_TEST(testFindOrLoad_Component_PythonInCppContainer)
CPPUNIT_TEST(testFindOrLoad_Component_ParamsEmpty)
A class to manage the SALOME naming service.
Definition: SALOME_NamingService.hxx:48