*/
void SALOMEDSTest::testAttributeExternalFileDef()
{
- //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);
_attr->SetValue("");
CPPUNIT_ASSERT(_attr->Value() == "");
-
- sm->Close(study);
+ study->Clear();
}