Salome HOME
Merge branch 'omu/Launcher9'
[modules/kernel.git] / src / SALOMEDS / Test / SALOMEDSTest_AttributeFileType.cxx
index 95587d7120fb0ca34dbf29dc2de4c8efb2f97e24..1860a9ceb9558c1f0f7200c59060aadf5c08a257 100755 (executable)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2014  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::testAttributeFileType()
 {
-  //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::testAttributeFileType()
   _attr->SetValue("");
   CPPUNIT_ASSERT(_attr->Value() == "");
 
-
-  sm->Close(study);
+  study->Clear();
 }