Salome HOME
Merge V9_dev branch into master
[modules/kernel.git] / src / SALOMEDS / Test / SALOMEDSTest_AttributePersistentRef.cxx
index a915c47132a76c14d51c8dc06c48b61eaaa39cb8..3a8ddd9fd1c38c488c2807d8f0ecc5ccd4a82bf8 100755 (executable)
  */
 void SALOMEDSTest::testAttributePersistentRef()
 {
-  //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);
 
@@ -68,7 +63,7 @@ void SALOMEDSTest::testAttributePersistentRef()
   _attr->SetValue("");
   CPPUNIT_ASSERT(_attr->Value() == "");
 
-  sm->Close(study);
+  study->Clear();
 }