Salome HOME
Merge branch 'omu/Launcher9'
[modules/kernel.git] / src / SALOMEDS / Test / SALOMEDSTest_AttributePixMap.cxx
index 8a6cf7077aae7a8cb37d75d538946a07237cb1fb..076bdb70f061fe3c1beb25cb6918e2cc0ca69060 100755 (executable)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2015  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2016  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
  */
 void SALOMEDSTest::testAttributePixMap()
 {
-  //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,8 +63,7 @@ void SALOMEDSTest::testAttributePixMap()
   _attr->SetPixMap("");
   CPPUNIT_ASSERT(_attr->GetPixMap() == "");
 
-
-  sm->Close(study);
+  study->Clear();
 }