General KERNEL Documentation     End User KERNEL Services  


src/LifeCycleCORBA/Test/LifeCycleCORBATest.hxx

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