X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSALOMEDS%2FTest%2FSALOMEDSTest_AttributeIOR.cxx;h=101af8f73f4affd8c323fa77f0c6affe613146e5;hb=074699f122e9bfd758dc805ca0023d355ce25ec5;hp=98b1023c158a5ae538d84d7c6fd27fcf8965ed80;hpb=703cf8ca778de35a6b463d4b4fca7c36697d717f;p=modules%2Fkernel.git diff --git a/src/SALOMEDS/Test/SALOMEDSTest_AttributeIOR.cxx b/src/SALOMEDS/Test/SALOMEDSTest_AttributeIOR.cxx index 98b1023c1..101af8f73 100755 --- a/src/SALOMEDS/Test/SALOMEDSTest_AttributeIOR.cxx +++ b/src/SALOMEDS/Test/SALOMEDSTest_AttributeIOR.cxx @@ -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 @@ -26,13 +26,8 @@ */ void SALOMEDSTest::testAttributeIOR() { - //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); @@ -57,14 +52,14 @@ void SALOMEDSTest::testAttributeIOR() CPPUNIT_ASSERT(value.empty()); - std::string ior = _orb->object_to_string(_sm); + std::string ior = _orb->object_to_string(_study); //Check method SetValue _attr->SetValue(ior); CPPUNIT_ASSERT(ior == _attr->Value()); - sm->Close(study); + study->Clear(); }