X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSALOMEDS%2FTest%2FSALOMEDSTest_AttributeGraphic.cxx;h=279a9198f3b9e8b8abb06a01a4ada9dadbbd41fd;hb=074699f122e9bfd758dc805ca0023d355ce25ec5;hp=79c09769f81e988596fa37aaf548838f7a1dbf49;hpb=718e0abe0126e5e53b3ba41fff1028efcf5bc887;p=modules%2Fkernel.git diff --git a/src/SALOMEDS/Test/SALOMEDSTest_AttributeGraphic.cxx b/src/SALOMEDS/Test/SALOMEDSTest_AttributeGraphic.cxx index 79c09769f..279a9198f 100755 --- a/src/SALOMEDS/Test/SALOMEDSTest_AttributeGraphic.cxx +++ b/src/SALOMEDS/Test/SALOMEDSTest_AttributeGraphic.cxx @@ -26,13 +26,8 @@ */ 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(); }