Salome HOME
bos #26457 Factorization of ORB initialization
[modules/kernel.git] / src / LifeCycleCORBA / Test / LifeCycleCORBATest.cxx
index e6c0c6af4ace9c6bc1879d188b0ab1c0ca2eec48..3611dea6dfc4982500c74c74ff70d70b91ea29a2 100644 (file)
@@ -23,8 +23,7 @@
 #include "LifeCycleCORBATest.hxx"
 #include "SALOME_LifeCycleCORBA.hxx"
 #include "SALOME_FileTransferCORBA.hxx"
-#include "Utils_ORB_INIT.hxx"
-#include "Utils_SINGLETON.hxx"
+#include "OpUtil.hxx"
 #include "Basics_Utils.hxx"
 #include "Basics_DirUtils.hxx"
 #include "utilities.h"
@@ -94,11 +93,7 @@ LifeCycleCORBATest::setUp()
 
   // --- Get or initialize the orb
 
-  int _argc = 1;
-  char* _argv[] = {(char*)""};
-  ORB_INIT &init = *SINGLETON_<ORB_INIT>::Instance() ;
-  ASSERT(SINGLETON_<ORB_INIT>::IsAlreadyExisting());
-  _orb = init(_argc , _argv ) ;
+  _orb = KERNEL::GetRefToORB();
 
   // --- Create a SALOME_NamingService instance