Salome HOME
- Deleted Study as an input parameter and class field.
[modules/kernel.git] / src / SALOMEDS / Test / SALOMEDSTest_AttributeTableOfString.cxx
index 172323cbca3c1a18b19d9c69227dfd51ab797d9a..5a3baea4f1caf904f9d8bbd38b40f90dd6ab5018 100755 (executable)
  */
 void SALOMEDSTest::testAttributeTableOfString()
 {
-  //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);
 
@@ -185,7 +180,7 @@ void SALOMEDSTest::testAttributeTableOfString()
 
   CPPUNIT_ASSERT(data2.size() == 3 && data2[0] == "11" && data2[1] == "-22" && data2[2] == "-33");
 
-  sm->Close(study);
+  study->Clear();
 }