#include <NamingServiceTest.hxx>

Public Member Functions | |
| void | setUp () |
| void | tearDown () |
| void | testConstructorDefault () |
| Test default constructor: must be followed by a call to init_orb(ORB) More... | |
| void | testConstructorOrb () |
| Test constructor with ORB parameter. More... | |
| void | testRegisterResolveAbsNoPath () |
| Test Register and resolve of a single CORBA object with absolute pathname, without subdirectories. More... | |
| void | testRegisterResolveRelativeNoPath () |
| Test Register and resolve of a single CORBA object with relative pathname, without subdirectories. More... | |
| void | testRegisterResolveAbsWithPath () |
| Test Register and resolve of a single CORBA object with absolute pathname, in a subdirectory. More... | |
| void | testRegisterResolveRelativeWithPath () |
| Test Register and resolve of a single CORBA object with relative pathname, in a subdirectory. More... | |
| void | testResolveBadName () |
| Test resolve with a name not known. More... | |
| void | testResolveBadNameRelative () |
| Test resolve with a name not known, with a relative path. More... | |
| void | testResolveFirst () |
| void | testResolveFirstRelative () |
| Test register and resolve multiple objects, test resolveFirst, relative path Register a few objects in /nstestfirstrel/echo_n where n is the object id. More... | |
| void | testResolveFirstUnknown () |
| Test resolveFirst with unknown name. More... | |
| void | testResolveFirstUnknownRelative () |
| Test resolveFirst with unknown name, relative Path. More... | |
| void | testResolveComponentOK () |
| Test ResolveComponent works as specified. More... | |
| void | testResolveComponentEmptyHostname () |
| Test ResolveComponent gives nil pointer if hostname is not given (empty) More... | |
| void | testResolveComponentUnknownHostname () |
| Test ResolveComponent gives nil pointer if hostname is unknown. More... | |
| void | testResolveComponentEmptyContainerName () |
| Test ResolveComponent when containerName is empty. More... | |
| void | testResolveComponentUnknownContainerName () |
| Test. More... | |
| void | testResolveComponentEmptyComponentName () |
| Test. More... | |
| void | testResolveComponentUnknownComponentName () |
| Test. More... | |
| void | testResolveComponentFalseNbproc () |
| Test with a false number nbproc. More... | |
| void | testContainerName () |
| Test. More... | |
| void | testContainerNameParams () |
| Test. More... | |
| void | testBuildContainerNameForNS () |
| Test. More... | |
| void | testBuildContainerNameForNSParams () |
| Test. More... | |
| void | testFind () |
| Test. More... | |
| void | testCreateDirectory () |
| Test. More... | |
| void | testChangeDirectory () |
| Test. More... | |
| void | testCurrentDirectory () |
| Test. More... | |
| void | testList () |
| Test. More... | |
| void | testListDirectory () |
| Test. More... | |
| void | testListDirectoryRecurs () |
| Test. More... | |
| void | testListSubdirs () |
| Test. More... | |
| void | testDestroyName () |
| Test. More... | |
| void | testDestroyDirectory () |
| Test. More... | |
| void | testDestroyFullDirectory () |
| void | testGetIorAddr () |
| Test. More... | |
Protected Member Functions | |
| void | _destroyDirectoryRecurs (std::string path) |
| DestroyFullDirectory is not recursive Need Housekeeping of /Containers for further tests ! More... | |
Protected Attributes | |
| CORBA::ORB_var | _orb |
| SALOME_NamingService | _NS |
| PortableServer::POA_var | _root_poa |
| PortableServer::POAManager_var | _pman |
| PortableServer::ObjectId_var | _myFactoryId |
| NSTEST_aFactory_i * | _myFactory |
| CORBA::Object_var | _factoryRef |
|
protected |
DestroyFullDirectory is not recursive Need Housekeeping of /Containers for further tests !
References _NS, SALOME_NamingService::Change_Directory(), SALOME_NamingService::Destroy_FullDirectory(), SALOME_NamingService::list_subdirs(), and SCRUTE.
Referenced by testDestroyFullDirectory().
|
private |
Set Trace mecanism.
References Kernel_Utils::GetTmpDir().
Referenced by setUp().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
| void NamingServiceTest::setUp | ( | ) |
| void NamingServiceTest::tearDown | ( | ) |
References PROTECTED_DELETE::deleteInstance(), and LocalTraceBufferPool::instance().
| void NamingServiceTest::testBuildContainerNameForNS | ( | ) |
Test.
References _NS, and SALOME_NamingService::BuildContainerNameForNS().
| void NamingServiceTest::testBuildContainerNameForNSParams | ( | ) |
| void NamingServiceTest::testChangeDirectory | ( | ) |
Test.
References _NS, SALOME_NamingService::Change_Directory(), SALOME_NamingService::Register(), and SALOME_NamingService::Resolve().
| void NamingServiceTest::testConstructorDefault | ( | ) |
Test default constructor: must be followed by a call to init_orb(ORB)
References _orb, SALOME_NamingService::getIORaddr(), and SALOME_NamingService::init_orb().
| void NamingServiceTest::testConstructorOrb | ( | ) |
Test constructor with ORB parameter.
References _orb, and SALOME_NamingService::getIORaddr().
| void NamingServiceTest::testContainerName | ( | ) |
Test.
References _NS, and SALOME_NamingService::ContainerName().
| void NamingServiceTest::testContainerNameParams | ( | ) |
| void NamingServiceTest::testCreateDirectory | ( | ) |
| void NamingServiceTest::testCurrentDirectory | ( | ) |
| void NamingServiceTest::testDestroyDirectory | ( | ) |
| void NamingServiceTest::testDestroyFullDirectory | ( | ) |
| void NamingServiceTest::testDestroyName | ( | ) |
Test.
References _NS, SALOME_NamingService::Destroy_Name(), SALOME_NamingService::Register(), and SALOME_NamingService::Resolve().
| void NamingServiceTest::testFind | ( | ) |
| void NamingServiceTest::testGetIorAddr | ( | ) |
Test.
References _NS, _orb, and SALOME_NamingService::getIORaddr().
| void NamingServiceTest::testList | ( | ) |
Test.
References _NS, SALOME_NamingService::Change_Directory(), and SALOME_NamingService::list().
| void NamingServiceTest::testListDirectory | ( | ) |
Test.
References _NS, SALOME_NamingService::Change_Directory(), and SALOME_NamingService::list_directory().
| void NamingServiceTest::testListDirectoryRecurs | ( | ) |
Test.
References _NS, SALOME_NamingService::Change_Directory(), and SALOME_NamingService::list_directory_recurs().
| void NamingServiceTest::testListSubdirs | ( | ) |
Test.
References _NS, SALOME_NamingService::Change_Directory(), and SALOME_NamingService::list_subdirs().
| void NamingServiceTest::testRegisterResolveAbsNoPath | ( | ) |
Test Register and resolve of a single CORBA object with absolute pathname, without subdirectories.
References _factoryRef, _NS, SALOME_NamingService::Register(), and SALOME_NamingService::Resolve().
| void NamingServiceTest::testRegisterResolveAbsWithPath | ( | ) |
Test Register and resolve of a single CORBA object with absolute pathname, in a subdirectory.
References _NS, SALOME_NamingService::Register(), and SALOME_NamingService::Resolve().
| void NamingServiceTest::testRegisterResolveRelativeNoPath | ( | ) |
Test Register and resolve of a single CORBA object with relative pathname, without subdirectories.
References _NS, SALOME_NamingService::Change_Directory(), SALOME_NamingService::Create_Directory(), SALOME_NamingService::Register(), and SALOME_NamingService::Resolve().
| void NamingServiceTest::testRegisterResolveRelativeWithPath | ( | ) |
Test Register and resolve of a single CORBA object with relative pathname, in a subdirectory.
Relative Path is changed to the created subdirectory when Register()
References _NS, SALOME_NamingService::Change_Directory(), SALOME_NamingService::Create_Directory(), SALOME_NamingService::Register(), and SALOME_NamingService::Resolve().
| void NamingServiceTest::testResolveBadName | ( | ) |
Test resolve with a name not known.
References _NS, and SALOME_NamingService::Resolve().
| void NamingServiceTest::testResolveBadNameRelative | ( | ) |
Test resolve with a name not known, with a relative path.
References _NS, SALOME_NamingService::Change_Directory(), SALOME_NamingService::Create_Directory(), and SALOME_NamingService::Resolve().
| void NamingServiceTest::testResolveComponentEmptyComponentName | ( | ) |
Test.
References _NS, SALOME_NamingService::Register(), SALOME_NamingService::Resolve(), and SALOME_NamingService::ResolveComponent().
| void NamingServiceTest::testResolveComponentEmptyContainerName | ( | ) |
Test ResolveComponent when containerName is empty.
check bad hostname gives nil pointer. If componentName registered on a container from hostname, a component reference is found (the first one). Else give nil pointer.
References _NS, SALOME_NamingService::Register(), SALOME_NamingService::Resolve(), and SALOME_NamingService::ResolveComponent().
| void NamingServiceTest::testResolveComponentEmptyHostname | ( | ) |
Test ResolveComponent gives nil pointer if hostname is not given (empty)
References _NS, SALOME_NamingService::Register(), SALOME_NamingService::Resolve(), and SALOME_NamingService::ResolveComponent().
| void NamingServiceTest::testResolveComponentFalseNbproc | ( | ) |
Test with a false number nbproc.
A positive number not corresponding to a registered component gives nil ref. A negative number is not taken into account and may give a non nil ref.
References _NS, SALOME_NamingService::Register(), SALOME_NamingService::Resolve(), and SALOME_NamingService::ResolveComponent().
| void NamingServiceTest::testResolveComponentOK | ( | ) |
Test ResolveComponent works as specified.
References _NS, SALOME_NamingService::Register(), SALOME_NamingService::Resolve(), and SALOME_NamingService::ResolveComponent().
| void NamingServiceTest::testResolveComponentUnknownComponentName | ( | ) |
Test.
References _NS, SALOME_NamingService::Register(), SALOME_NamingService::Resolve(), and SALOME_NamingService::ResolveComponent().
| void NamingServiceTest::testResolveComponentUnknownContainerName | ( | ) |
Test.
References _NS, SALOME_NamingService::Register(), SALOME_NamingService::Resolve(), and SALOME_NamingService::ResolveComponent().
| void NamingServiceTest::testResolveComponentUnknownHostname | ( | ) |
Test ResolveComponent gives nil pointer if hostname is unknown.
References _NS, SALOME_NamingService::Register(), SALOME_NamingService::Resolve(), and SALOME_NamingService::ResolveComponent().
| void NamingServiceTest::testResolveFirst | ( | ) |
| void NamingServiceTest::testResolveFirstRelative | ( | ) |
Test register and resolve multiple objects, test resolveFirst, relative path Register a few objects in /nstestfirstrel/echo_n where n is the object id.
Resolve all the objects. ResolveFirst echo with a relative path /nstestfirstrel must give /nstestfirst/echo_i, corresponding to the first object.
References _NS, SALOME_NamingService::Change_Directory(), NB_OBJS, SALOME_NamingService::Register(), SALOME_NamingService::Resolve(), and SALOME_NamingService::ResolveFirst().
| void NamingServiceTest::testResolveFirstUnknown | ( | ) |
Test resolveFirst with unknown name.
References _NS, and SALOME_NamingService::ResolveFirst().
| void NamingServiceTest::testResolveFirstUnknownRelative | ( | ) |
Test resolveFirst with unknown name, relative Path.
References _NS, SALOME_NamingService::Change_Directory(), SALOME_NamingService::Create_Directory(), and SALOME_NamingService::ResolveFirst().
|
protected |
Referenced by setUp(), and testRegisterResolveAbsNoPath().
|
protected |
Referenced by setUp().
|
protected |
Referenced by setUp().
|
protected |
Referenced by _destroyDirectoryRecurs(), setUp(), testBuildContainerNameForNS(), testBuildContainerNameForNSParams(), testChangeDirectory(), testContainerName(), testContainerNameParams(), testCreateDirectory(), testCurrentDirectory(), testDestroyDirectory(), testDestroyFullDirectory(), testDestroyName(), testFind(), testGetIorAddr(), testList(), testListDirectory(), testListDirectoryRecurs(), testListSubdirs(), testRegisterResolveAbsNoPath(), testRegisterResolveAbsWithPath(), testRegisterResolveRelativeNoPath(), testRegisterResolveRelativeWithPath(), testResolveBadName(), testResolveBadNameRelative(), testResolveComponentEmptyComponentName(), testResolveComponentEmptyContainerName(), testResolveComponentEmptyHostname(), testResolveComponentFalseNbproc(), testResolveComponentOK(), testResolveComponentUnknownComponentName(), testResolveComponentUnknownContainerName(), testResolveComponentUnknownHostname(), testResolveFirst(), testResolveFirstRelative(), testResolveFirstUnknown(), and testResolveFirstUnknownRelative().
|
protected |
Referenced by setUp(), testConstructorDefault(), testConstructorOrb(), and testGetIorAddr().
|
protected |
Referenced by setUp().
|
protected |
Referenced by setUp().