//Check method HasFather
CPPUNIT_ASSERT(_attr1->HasFather());
- cout << endl << "THE TEST IS NOT COMPLETE !!!" << endl;
-
+#ifdef SALOMEDS_ALL_TESTS
//Check method GetFather
- /*
CPPUNIT_ASSERT(_attr1->GetFather() == _attr);
//Check method Append
_attr2->SetTreeID(TreeNodeID);
CPPUNIT_ASSERT(_attr2->GetTreeID() == TreeNodeID);
- */
+#else
+ cout << endl << "THE TEST IS NOT COMPLETE !!!" << endl;
+#endif
sm->Close(study);
}
//Check method GetName
CPPUNIT_ASSERT(builder->GetName() == "A root use case");
- cout << endl << "THE TEST IS NOT COMPLETE !!!" << endl;
-
+#ifdef SALOMEDS_ALL_TESTS
//Check method GetUseCaseIterator
- /*
builder->SetRootCurrent();
_PTR(SObject) nullObject;
_PTR(UseCaseIterator) root_it = builder->GetUseCaseIterator(nullObject); //The iterator on all UseCases
CPPUNIT_ASSERT(root_it->Value()->GetID() == root2->GetID());
root_it->Next();
CPPUNIT_ASSERT(!root_it->More());
- */
+#else
+ cout << endl << "THE TEST IS NOT COMPLETE !!!" << endl;
+#endif
builder->SetCurrentObject(root1);
_PTR(UseCaseIterator) it = builder->GetUseCaseIterator(root1); //The iterator on the given UseCase
char hostname[511];
int size;
gethostname(hostname, size);
- string cfg_file = string(getenv("HOME"))+"/.omniORB_"+string(hostname)+"_2810.cfg";
+ string port = getenv("SALOMEDS_UNITTESTS_PORT");
+ if(port.empty()) port = "2810";
+ string cfg_file = string(getenv("HOME"))+"/.omniORB_"+string(hostname)+"_"+port+".cfg";
setenv("OMNIORB_CONFIG", cfg_file.c_str(), 1);
ORB_INIT &init = *SINGLETON_<ORB_INIT>::Instance() ;