Salome HOME
- Deleted Study as an input parameter and class field.
[modules/kernel.git] / src / SALOMEDS / Test / SALOMEDSTest_UseCase.cxx
index a4c0e36f38eb2804eb083d98efff8d00c6b4c880..30455b5caa51b502c9e065d55346b9cc1cc98e63 100755 (executable)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2014  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2016  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
 
 void SALOMEDSTest::testUseCase()
 {
-  //Create or find the Study manager
-  _PTR(StudyManager) sm ( new SALOMEDS_StudyManager(_sm) );
-  CPPUNIT_ASSERT(sm);
+  //Create Study
+  _PTR(Study) study(new SALOMEDS_Study(_study));
 
-  //Create a new study
-  _PTR(Study) study = sm->NewStudy("TestSObject");
   CPPUNIT_ASSERT(study);
 
   //Create Study Builder
@@ -148,7 +145,7 @@ void SALOMEDSTest::testUseCase()
   CPPUNIT_ASSERT(it->More());
   CPPUNIT_ASSERT(it->Value()->GetID() == so1->GetID());
 
-  sm->Close(study);
+  study->Clear();
 }
 #undef SALOMEDS_ALL_TESTS