Back to index

salome-kernel  6.5.0
LifeCycleCORBATest.hxx
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  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 
00023 #ifndef _LIFECYCLECORBATEST_HXX_
00024 #define _LIFECYCLECORBATEST_HXX_
00025 
00026 #include <cppunit/extensions/HelperMacros.h>
00027 
00028 #include <SALOMEconfig.h>
00029 #include CORBA_CLIENT_HEADER(SALOME_Component)
00030 #include CORBA_CLIENT_HEADER(SALOME_TestComponent)
00031 #include "SALOME_NamingService.hxx"
00032 
00033 class LifeCycleCORBATest : public CppUnit::TestFixture
00034 {
00035   CPPUNIT_TEST_SUITE( LifeCycleCORBATest );
00036   CPPUNIT_TEST( testFindOrLoad_Component_LaunchContainer );
00037   CPPUNIT_TEST( testFindOrLoad_Component_SameInstance );
00038   CPPUNIT_TEST( testFindOrLoad_Component_PythonInCppContainer );
00039   CPPUNIT_TEST( testFindOrLoad_Component_PythonSameInstance );
00040   CPPUNIT_TEST( testFindOrLoad_Component_UnknownInCatalog );
00041   CPPUNIT_TEST( testFindOrLoad_Component_LaunchContainerHostname );
00042   CPPUNIT_TEST( testFindOrLoad_Component_SameContainer );
00043   CPPUNIT_TEST( testFindOrLoad_Component_UnknownMachine );
00044   CPPUNIT_TEST( testFindOrLoad_Component_ParamsEmpty );
00045   CPPUNIT_TEST( testFindOrLoad_Component_ParamsLocalContainer );
00046   CPPUNIT_TEST( testFindOrLoad_Component_ParamsContainerName );
00047   CPPUNIT_TEST( testFindOrLoad_Component_RemoteComputer );
00048   CPPUNIT_TEST( testFindOrLoad_Component_ParamsRemoteComputer );
00049   CPPUNIT_TEST( testFindOrLoad_Component_ParamsRemoteComputer2 );
00050   CPPUNIT_TEST( testgetLocalFile_localComputer );
00051   CPPUNIT_TEST( testgetLocalFile_remoteComputer );
00052 //   CPPUNIT_TEST( testFindOrLoad_Component_ );
00053 //   CPPUNIT_TEST(  );
00054 //   CPPUNIT_TEST(  );
00055   CPPUNIT_TEST_SUITE_END();
00056 
00057 public:
00058 
00059   void setUp();
00060   void tearDown();
00061 
00062   void testFindOrLoad_Component_LaunchContainer();
00063   void testFindOrLoad_Component_SameInstance();
00064   void testFindOrLoad_Component_PythonInCppContainer();
00065   void testFindOrLoad_Component_PythonSameInstance();
00066   void testFindOrLoad_Component_UnknownInCatalog();
00067   void testFindOrLoad_Component_LaunchContainerHostname();
00068   void testFindOrLoad_Component_SameContainer();
00069   void testFindOrLoad_Component_UnknownMachine();
00070   void testFindOrLoad_Component_ParamsEmpty();
00071   void testFindOrLoad_Component_ParamsLocalContainer();
00072   void testFindOrLoad_Component_ParamsContainerName();
00073   void testFindOrLoad_Component_RemoteComputer();
00074   void testFindOrLoad_Component_ParamsRemoteComputer();
00075   void testFindOrLoad_Component_ParamsRemoteComputer2();
00076   void testgetLocalFile_localComputer();
00077   void testgetLocalFile_remoteComputer();
00078 //   void testFindOrLoad_Component_();
00079 //   void testFindOrLoad_Component_();
00080 
00081 protected:
00082   std::string GetRemoteHost();
00083   CORBA::ORB_var _orb;
00084   SALOME_NamingService _NS;
00085 };
00086 
00087 #endif