Salome HOME
projects
/
modules
/
kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- Deleted Study as an input parameter and class field.
[modules/kernel.git]
/
src
/
SALOMEDS
/
Test
/
SALOMEDSTest_AttributeIOR.cxx
diff --git
a/src/SALOMEDS/Test/SALOMEDSTest_AttributeIOR.cxx
b/src/SALOMEDS/Test/SALOMEDSTest_AttributeIOR.cxx
index 25660a648113370a74a157ba09a2219e197b558a..101af8f73f4affd8c323fa77f0c6affe613146e5 100755
(executable)
--- a/
src/SALOMEDS/Test/SALOMEDSTest_AttributeIOR.cxx
+++ b/
src/SALOMEDS/Test/SALOMEDSTest_AttributeIOR.cxx
@@
-26,13
+26,8
@@
*/
void SALOMEDSTest::testAttributeIOR()
{
*/
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);
CPPUNIT_ASSERT(study);
@@
-57,14
+52,14
@@
void SALOMEDSTest::testAttributeIOR()
CPPUNIT_ASSERT(value.empty());
CPPUNIT_ASSERT(value.empty());
- std::string ior = _orb->object_to_string(_s
m
);
+ std::string ior = _orb->object_to_string(_s
tudy
);
//Check method SetValue
_attr->SetValue(ior);
CPPUNIT_ASSERT(ior == _attr->Value());
//Check method SetValue
_attr->SetValue(ior);
CPPUNIT_ASSERT(ior == _attr->Value());
- s
m->Close(study
);
+ s
tudy->Clear(
);
}
}