1 // Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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.
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.
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
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 #ifndef _LIFECYCLECORBATEST_HXX_
24 #define _LIFECYCLECORBATEST_HXX_
26 #include <cppunit/extensions/HelperMacros.h>
28 #include <SALOMEconfig.h>
29 #include CORBA_CLIENT_HEADER(SALOME_Component)
30 #include CORBA_CLIENT_HEADER(SALOME_TestComponent)
31 #include "SALOME_NamingService.hxx"
34 # if defined LIFECYCLECORBATEST_EXPORTS || defined LifeCycleCORBATest_EXPORTS
35 # define LIFECYCLECORBATEST_EXPORT __declspec( dllexport )
37 # define LIFECYCLECORBATEST_EXPORT __declspec( dllimport )
40 # define LIFECYCLECORBATEST_EXPORT
43 class LIFECYCLECORBATEST_EXPORT LifeCycleCORBATest : public CppUnit::TestFixture
45 CPPUNIT_TEST_SUITE( LifeCycleCORBATest );
46 CPPUNIT_TEST( testFindOrLoad_Component_LaunchContainer );
47 CPPUNIT_TEST( testFindOrLoad_Component_SameInstance );
48 CPPUNIT_TEST( testFindOrLoad_Component_PythonInCppContainer );
49 CPPUNIT_TEST( testFindOrLoad_Component_PythonSameInstance );
50 CPPUNIT_TEST( testFindOrLoad_Component_UnknownInCatalog );
51 CPPUNIT_TEST( testFindOrLoad_Component_LaunchContainerHostname );
52 CPPUNIT_TEST( testFindOrLoad_Component_SameContainer );
53 CPPUNIT_TEST( testFindOrLoad_Component_UnknownMachine );
54 CPPUNIT_TEST( testFindOrLoad_Component_ParamsEmpty );
55 CPPUNIT_TEST( testFindOrLoad_Component_ParamsLocalContainer );
56 CPPUNIT_TEST( testFindOrLoad_Component_ParamsContainerName );
57 #ifdef SALOME_TEST_REMOTE
58 CPPUNIT_TEST( testFindOrLoad_Component_RemoteComputer );
59 CPPUNIT_TEST( testFindOrLoad_Component_ParamsRemoteComputer );
60 CPPUNIT_TEST( testFindOrLoad_Component_ParamsRemoteComputer2 );
62 CPPUNIT_TEST( testgetLocalFile_localComputer );
63 #ifdef SALOME_TEST_REMOTE
64 CPPUNIT_TEST( testgetLocalFile_remoteComputer );
66 // CPPUNIT_TEST( testFindOrLoad_Component_ );
69 CPPUNIT_TEST_SUITE_END();
76 void testFindOrLoad_Component_LaunchContainer();
77 void testFindOrLoad_Component_SameInstance();
78 void testFindOrLoad_Component_PythonInCppContainer();
79 void testFindOrLoad_Component_PythonSameInstance();
80 void testFindOrLoad_Component_UnknownInCatalog();
81 void testFindOrLoad_Component_LaunchContainerHostname();
82 void testFindOrLoad_Component_SameContainer();
83 void testFindOrLoad_Component_UnknownMachine();
84 void testFindOrLoad_Component_ParamsEmpty();
85 void testFindOrLoad_Component_ParamsLocalContainer();
86 void testFindOrLoad_Component_ParamsContainerName();
87 void testFindOrLoad_Component_RemoteComputer();
88 void testFindOrLoad_Component_ParamsRemoteComputer();
89 void testFindOrLoad_Component_ParamsRemoteComputer2();
90 void testgetLocalFile_localComputer();
91 void testgetLocalFile_remoteComputer();
92 // void testFindOrLoad_Component_();
93 // void testFindOrLoad_Component_();
96 std::string GetRemoteHost();
98 SALOME_NamingService _NS;