X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSALOMEDS%2FTest%2FSALOMEDSTest_AttributeComment.cxx;h=216a85c9e2d4868da087ffab0ef15dbd24e7efec;hb=85eb31dcb591c2535c0b0d68c3525f7423888954;hp=6c93cd649dbdcf287a5e8fb53a1ea19f3c72fdae;hpb=0dda5bf24dc8c1a57fc668a98576de03a0087d8b;p=modules%2Fkernel.git diff --git a/src/SALOMEDS/Test/SALOMEDSTest_AttributeComment.cxx b/src/SALOMEDS/Test/SALOMEDSTest_AttributeComment.cxx old mode 100755 new mode 100644 index 6c93cd649..216a85c9e --- a/src/SALOMEDS/Test/SALOMEDSTest_AttributeComment.cxx +++ b/src/SALOMEDS/Test/SALOMEDSTest_AttributeComment.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2019 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 @@ -25,20 +25,12 @@ * Use code of SALOMEDS_AttributeComment.cxx */ +//#include "Basics_Utils.hxx" + void SALOMEDSTest::testAttributeComment() { - //Create or find the Study manager - _PTR(StudyManager) sm(new SALOMEDS_StudyManager(_sm)); - - CPPUNIT_ASSERT(sm); - - //Create a new study - std::vector ost(sm->GetOpenStudies()); - _PTR(Study) study; - if(ost.empty()) - study = sm->NewStudy("Test"); - else - study = sm->GetStudyByName(ost[0]); + //Create Study + _PTR(Study) study(new SALOMEDS_Study(_study)); CPPUNIT_ASSERT(study); @@ -73,8 +65,7 @@ void SALOMEDSTest::testAttributeComment() _attr->SetValue(""); CPPUNIT_ASSERT(_attr->Value() == ""); - - sm->Close(study); + study->Clear(); }