23 #ifndef _NAMINGSERVICETEST_HXX_
24 #define _NAMINGSERVICETEST_HXX_
26 #include <cppunit/extensions/HelperMacros.h>
30 #include <SALOMEconfig.h>
31 #include CORBA_SERVER_HEADER(nstest)
34 # if defined NAMINGSERVICETEST_EXPORTS || defined NamingServiceTest_EXPORTS
35 # define NAMINGSERVICETEST_EXPORT __declspec( dllexport )
37 # define NAMINGSERVICETEST_EXPORT __declspec( dllimport )
40 # define NAMINGSERVICETEST_EXPORT
44 public virtual PortableServer::ServantBase
56 public virtual PortableServer::ServantBase
69 CPPUNIT_TEST( testConstructorDefault );
70 CPPUNIT_TEST( testConstructorOrb );
71 CPPUNIT_TEST( testRegisterResolveAbsNoPath );
72 CPPUNIT_TEST( testRegisterResolveRelativeNoPath );
73 CPPUNIT_TEST( testRegisterResolveAbsWithPath );
74 CPPUNIT_TEST( testRegisterResolveRelativeWithPath );
75 CPPUNIT_TEST( testResolveBadName );
76 CPPUNIT_TEST( testResolveBadNameRelative );
77 CPPUNIT_TEST( testResolveFirst );
78 CPPUNIT_TEST( testResolveFirstRelative );
79 CPPUNIT_TEST( testResolveFirstUnknown );
80 CPPUNIT_TEST( testResolveFirstUnknownRelative );
81 CPPUNIT_TEST( testResolveComponentOK );
82 CPPUNIT_TEST( testResolveComponentEmptyHostname );
83 CPPUNIT_TEST( testResolveComponentUnknownHostname );
84 CPPUNIT_TEST( testResolveComponentEmptyContainerName );
85 CPPUNIT_TEST( testResolveComponentUnknownContainerName );
86 CPPUNIT_TEST( testResolveComponentEmptyComponentName );
87 CPPUNIT_TEST( testResolveComponentUnknownComponentName );
88 CPPUNIT_TEST( testResolveComponentFalseNbproc );
89 CPPUNIT_TEST( testContainerName );
90 CPPUNIT_TEST( testContainerNameParams );
91 CPPUNIT_TEST( testBuildContainerNameForNS );
92 CPPUNIT_TEST( testBuildContainerNameForNSParams );
93 CPPUNIT_TEST( testFind );
94 CPPUNIT_TEST( testCreateDirectory );
95 CPPUNIT_TEST( testChangeDirectory );
96 CPPUNIT_TEST( testCurrentDirectory );
97 CPPUNIT_TEST( testList );
98 CPPUNIT_TEST( testListDirectory );
99 CPPUNIT_TEST( testListDirectoryRecurs );
100 CPPUNIT_TEST( testListSubdirs );
101 CPPUNIT_TEST( testDestroyName );
102 CPPUNIT_TEST( testDestroyDirectory );
103 CPPUNIT_TEST( testDestroyFullDirectory );
104 CPPUNIT_TEST( testGetIorAddr );
109 CPPUNIT_TEST_SUITE_END();
116 void testConstructorDefault();
117 void testConstructorOrb();
118 void testRegisterResolveAbsNoPath();
119 void testRegisterResolveRelativeNoPath();
120 void testRegisterResolveAbsWithPath();
121 void testRegisterResolveRelativeWithPath();
122 void testResolveBadName();
123 void testResolveBadNameRelative();
124 void testResolveFirst();
125 void testResolveFirstRelative();
126 void testResolveFirstUnknown();
127 void testResolveFirstUnknownRelative();
128 void testResolveComponentOK();
129 void testResolveComponentEmptyHostname();
130 void testResolveComponentUnknownHostname();
131 void testResolveComponentEmptyContainerName();
132 void testResolveComponentUnknownContainerName();
133 void testResolveComponentEmptyComponentName();
134 void testResolveComponentUnknownComponentName();
135 void testResolveComponentFalseNbproc();
136 void testContainerName();
137 void testContainerNameParams();
138 void testBuildContainerNameForNS();
139 void testBuildContainerNameForNSParams();
141 void testCreateDirectory();
142 void testChangeDirectory();
143 void testCurrentDirectory();
145 void testListDirectory();
146 void testListDirectoryRecurs();
147 void testListSubdirs();
148 void testDestroyName();
149 void testDestroyDirectory();
150 void testDestroyFullDirectory();
151 void testGetIorAddr();
154 std::string _getTraceFileName();
157 void _destroyDirectoryRecurs(std::string path);
163 PortableServer::POAManager_var
_pman;