Version: 8.3.0
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
NamingServiceTest Class Reference
Inheritance diagram for NamingServiceTest:
Inheritance graph

Public Member Functions

void setUp ()
 
void tearDown ()
 
void testConstructorDefault ()
 
void testConstructorOrb ()
 
void testRegisterResolveAbsNoPath ()
 
void testRegisterResolveRelativeNoPath ()
 
void testRegisterResolveAbsWithPath ()
 
void testRegisterResolveRelativeWithPath ()
 
void testResolveBadName ()
 
void testResolveBadNameRelative ()
 
void testResolveFirst ()
 
void testResolveFirstRelative ()
 
void testResolveFirstUnknown ()
 
void testResolveFirstUnknownRelative ()
 
void testResolveComponentOK ()
 
void testResolveComponentEmptyHostname ()
 
void testResolveComponentUnknownHostname ()
 
void testResolveComponentEmptyContainerName ()
 
void testResolveComponentUnknownContainerName ()
 
void testResolveComponentEmptyComponentName ()
 
void testResolveComponentUnknownComponentName ()
 
void testResolveComponentFalseNbproc ()
 
void testContainerName ()
 
void testContainerNameParams ()
 
void testBuildContainerNameForNS ()
 
void testBuildContainerNameForNSParams ()
 
void testFind ()
 
void testCreateDirectory ()
 
void testChangeDirectory ()
 
void testCurrentDirectory ()
 
void testList ()
 
void testListDirectory ()
 
void testListDirectoryRecurs ()
 
void testListSubdirs ()
 
void testDestroyName ()
 
void testDestroyDirectory ()
 
void testDestroyFullDirectory ()
 
void testGetIorAddr ()
 

Protected Member Functions

void _destroyDirectoryRecurs (std::string path)
 

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
 

Member Function Documentation

void NamingServiceTest::tearDown ( )
  • delete trace classes
void NamingServiceTest::testConstructorDefault ( )

Test default constructor: must be followed by a call to init_orb(ORB)

void NamingServiceTest::testConstructorOrb ( )

Test constructor with ORB parameter

void NamingServiceTest::testRegisterResolveAbsNoPath ( )

Test Register and resolve of a single CORBA object with absolute pathname, without subdirectories

void NamingServiceTest::testRegisterResolveRelativeNoPath ( )

Test Register and resolve of a single CORBA object with relative pathname, without subdirectories

void NamingServiceTest::testRegisterResolveAbsWithPath ( )

Test Register and resolve of a single CORBA object with absolute pathname, in a subdirectory

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()

void NamingServiceTest::testResolveBadName ( )

Test resolve with a name not known

void NamingServiceTest::testResolveBadNameRelative ( )

Test resolve with a name not known, with a relative path

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.

void NamingServiceTest::testResolveFirstUnknown ( )

Test resolveFirst with unknown name

void NamingServiceTest::testResolveFirstUnknownRelative ( )

Test resolveFirst with unknown name, relative Path

void NamingServiceTest::testResolveComponentOK ( )

Test ResolveComponent works as specified

void NamingServiceTest::testResolveComponentEmptyHostname ( )

Test ResolveComponent gives nil pointer if hostname is not given (empty)

void NamingServiceTest::testResolveComponentUnknownHostname ( )

Test ResolveComponent gives nil pointer if hostname is unknown

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.

void NamingServiceTest::testResolveComponentUnknownContainerName ( )

Test

void NamingServiceTest::testResolveComponentEmptyComponentName ( )

Test

void NamingServiceTest::testResolveComponentUnknownComponentName ( )

Test

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.

void NamingServiceTest::testContainerName ( )

Test

void NamingServiceTest::testContainerNameParams ( )

Test

void NamingServiceTest::testBuildContainerNameForNS ( )

Test

void NamingServiceTest::testBuildContainerNameForNSParams ( )

Test

void NamingServiceTest::testFind ( )

Test

void NamingServiceTest::testCreateDirectory ( )

Test

void NamingServiceTest::testChangeDirectory ( )

Test

void NamingServiceTest::testCurrentDirectory ( )

Test

void NamingServiceTest::testList ( )

Test

void NamingServiceTest::testListDirectory ( )

Test

void NamingServiceTest::testListDirectoryRecurs ( )

Test

void NamingServiceTest::testListSubdirs ( )

Test

void NamingServiceTest::testDestroyName ( )

Test

void NamingServiceTest::testDestroyDirectory ( )

Test

void NamingServiceTest::testGetIorAddr ( )

Test

void NamingServiceTest::_destroyDirectoryRecurs ( std::string  path)
protected

DestroyFullDirectory is not recursive Need Housekeeping of /Containers for further tests !