Salome HOME
- Deleted Study as an input parameter and class field.
[modules/kernel.git] / src / SALOMEDS / Test / SALOMEDSTest_AttributeGraphic.cxx
index 79c09769f81e988596fa37aaf548838f7a1dbf49..279a9198f3b9e8b8abb06a01a4ada9dadbbd41fd 100755 (executable)
  */
 void SALOMEDSTest::testAttributeGraphic()
 {
-  //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::testAttributeGraphic()
   _attr->SetVisibility(-1, true);
   CPPUNIT_ASSERT(_attr->GetVisibility(-1));
 
-  sm->Close(study);
+  study->Clear();
 }