Salome HOME
- Deleted Study as an input parameter and class field.
[modules/kernel.git] / src / SALOMEDS / Test / SALOMEDSTest_ChildIterator.cxx
index d4c2bdf5d0b655d1ab9fd1e30d39b147c75c9992..55d9a224f760052862308b086c2274d89deadbaa 100755 (executable)
  */
 void SALOMEDSTest::testChildIterator()
 {
-  //Create or find the Study manager
-  _PTR(StudyManager) sm ( new SALOMEDS_StudyManager(_sm) );
-
-  CPPUNIT_ASSERT(sm);
-
-  //Create a new study
-  _PTR(Study) study = sm->NewStudy("Test");
+  //Create Study
+  _PTR(Study) study(new SALOMEDS_Study(_study));
 
   CPPUNIT_ASSERT(study);
 
@@ -74,7 +69,7 @@ void SALOMEDSTest::testChildIterator()
   //Check that there are two SObject under so
   CPPUNIT_ASSERT(count == 2);
   
-  sm->Close(study);
+  study->Clear();
 }