00001 // Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE 00002 // 00003 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, 00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 00005 // 00006 // This library is free software; you can redistribute it and/or 00007 // modify it under the terms of the GNU Lesser General Public 00008 // License as published by the Free Software Foundation; either 00009 // version 2.1 of the License. 00010 // 00011 // This library is distributed in the hope that it will be useful, 00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 // Lesser General Public License for more details. 00015 // 00016 // You should have received a copy of the GNU Lesser General Public 00017 // License along with this library; if not, write to the Free Software 00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 // 00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com 00021 // 00022 #ifndef _LIFECYCLECORBATEST_HXX_ 00023 #define _LIFECYCLECORBATEST_HXX_ 00024 00025 #include <cppunit/extensions/HelperMacros.h> 00026 00027 #include <SALOMEconfig.h> 00028 #include CORBA_CLIENT_HEADER(SALOME_Component) 00029 #include CORBA_CLIENT_HEADER(SALOME_TestComponent) 00030 #include "SALOME_NamingService.hxx" 00031 00032 class LifeCycleCORBATest : public CppUnit::TestFixture 00033 { 00034 CPPUNIT_TEST_SUITE( LifeCycleCORBATest ); 00035 CPPUNIT_TEST( testFindOrLoad_Component_LaunchContainer ); 00036 CPPUNIT_TEST( testFindOrLoad_Component_SameInstance ); 00037 CPPUNIT_TEST( testFindOrLoad_Component_PythonInCppContainer ); 00038 CPPUNIT_TEST( testFindOrLoad_Component_PythonSameInstance ); 00039 CPPUNIT_TEST( testFindOrLoad_Component_UnknownInCatalog ); 00040 CPPUNIT_TEST( testFindOrLoad_Component_LaunchContainerHostname ); 00041 CPPUNIT_TEST( testFindOrLoad_Component_SameContainer ); 00042 CPPUNIT_TEST( testFindOrLoad_Component_UnknownMachine ); 00043 CPPUNIT_TEST( testFindOrLoad_Component_ParamsEmpty ); 00044 CPPUNIT_TEST( testFindOrLoad_Component_ParamsLocalContainer ); 00045 CPPUNIT_TEST( testFindOrLoad_Component_ParamsContainerName ); 00046 CPPUNIT_TEST( testFindOrLoad_Component_RemoteComputer ); 00047 CPPUNIT_TEST( testFindOrLoad_Component_ParamsRemoteComputer ); 00048 CPPUNIT_TEST( testFindOrLoad_Component_ParamsRemoteComputer2 ); 00049 CPPUNIT_TEST( testgetLocalFile_localComputer ); 00050 CPPUNIT_TEST( testgetLocalFile_remoteComputer ); 00051 // CPPUNIT_TEST( testFindOrLoad_Component_ ); 00052 // CPPUNIT_TEST( ); 00053 // CPPUNIT_TEST( ); 00054 CPPUNIT_TEST_SUITE_END(); 00055 00056 public: 00057 00058 void setUp(); 00059 void tearDown(); 00060 00061 void testFindOrLoad_Component_LaunchContainer(); 00062 void testFindOrLoad_Component_SameInstance(); 00063 void testFindOrLoad_Component_PythonInCppContainer(); 00064 void testFindOrLoad_Component_PythonSameInstance(); 00065 void testFindOrLoad_Component_UnknownInCatalog(); 00066 void testFindOrLoad_Component_LaunchContainerHostname(); 00067 void testFindOrLoad_Component_SameContainer(); 00068 void testFindOrLoad_Component_UnknownMachine(); 00069 void testFindOrLoad_Component_ParamsEmpty(); 00070 void testFindOrLoad_Component_ParamsLocalContainer(); 00071 void testFindOrLoad_Component_ParamsContainerName(); 00072 void testFindOrLoad_Component_RemoteComputer(); 00073 void testFindOrLoad_Component_ParamsRemoteComputer(); 00074 void testFindOrLoad_Component_ParamsRemoteComputer2(); 00075 void testgetLocalFile_localComputer(); 00076 void testgetLocalFile_remoteComputer(); 00077 // void testFindOrLoad_Component_(); 00078 // void testFindOrLoad_Component_(); 00079 00080 protected: 00081 std::string GetRemoteHost(); 00082 CORBA::ORB_var _orb; 00083 SALOME_NamingService _NS; 00084 }; 00085 00086 #endif