Salome HOME
- Deleted Study as an input parameter and class field.
[modules/kernel.git] / src / SALOMEDS / Test / SALOMEDSTest_AttributeReal.cxx
index 332dd4fec4a529c4210dbe0214e786e9311cc133..8061ced5c99f0873e23402e6c98294e1d8befb50 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::testAttributeReal()
 {
-  //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);
 
@@ -60,7 +55,7 @@ void SALOMEDSTest::testAttributeReal()
   //Check method Value
   CPPUNIT_ASSERT(_attr->Value() == value);
 
-  sm->Close(study);
+  study->Clear();
 }