Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

alma::acs::daemontest::ServicesDaemonTest Class Reference

List of all members.

Public Member Functions

 ServicesDaemonTest () throws Exception
void testNamingSrvStartStopCheckCallback () throws Exception
void testStartServiceTwice () throws Exception
void testStopServiceBeforeStarted () throws Exception
void testStartAcsServiceIndividually () throws Throwable
void testServicesBuilder () throws Exception

Protected Member Functions

void runTest () throws Throwable
String getFullName ()
void setUp () throws Exception
void tearDown () throws Exception

Protected Attributes

Logger logger

Private Member Functions

ServicesDaemon getServicesDaemon (String host)
NamingContext getNamingService ()
void assertNamingService (boolean running)
void assertCDB ()
void assertManager ()
DaemonCallback activateDaemonCallback (DaemonCallbackImpl daemonCallbackImpl) throws AcsJContainerEx, AcsJUnexpectedExceptionEx
DaemonSequenceCallback createDaemonSequenceCallback () throws AcsJContainerEx, AcsJUnexpectedExceptionEx

Private Attributes

AcsCorba acsCorba
ServicesDaemon daemon
String host
short instanceNumber = (short) ACSPorts.getBasePort()

Static Private Attributes

final String namePrefix = "ServicesDaemonTest"

Detailed Description

**** Work in progress, not in TAT yet! ****

Corba-related code copied from ComponentClientTestCase, which we don't use here because it requires a running ACS with manager which we don't need for the daemon test.

Author:
hsommer


Constructor & Destructor Documentation

alma::acs::daemontest::ServicesDaemonTest::ServicesDaemonTest  )  throws Exception [inline]
 


Member Function Documentation

DaemonCallback alma::acs::daemontest::ServicesDaemonTest::activateDaemonCallback DaemonCallbackImpl  daemonCallbackImpl  )  throws AcsJContainerEx, AcsJUnexpectedExceptionEx [inline, private]
 

Creates a DaemonCallbackImpl object and registers it with the ORB.

void alma::acs::daemontest::ServicesDaemonTest::assertCDB  )  [inline, private]
 

void alma::acs::daemontest::ServicesDaemonTest::assertManager  )  [inline, private]
 

void alma::acs::daemontest::ServicesDaemonTest::assertNamingService boolean  running  )  [inline, private]
 

DaemonSequenceCallback alma::acs::daemontest::ServicesDaemonTest::createDaemonSequenceCallback  )  throws AcsJContainerEx, AcsJUnexpectedExceptionEx [inline, private]
 

Creates a DaemonCallbackImpl object and registers it with the ORB.

String alma::acs::daemontest::ServicesDaemonTest::getFullName  )  [inline, protected]
 

NamingContext alma::acs::daemontest::ServicesDaemonTest::getNamingService  )  [inline, private]
 

ServicesDaemon alma::acs::daemontest::ServicesDaemonTest::getServicesDaemon String  host  )  [inline, private]
 

void alma::acs::daemontest::ServicesDaemonTest::runTest  )  throws Throwable [inline, protected]
 

void alma::acs::daemontest::ServicesDaemonTest::setUp  )  throws Exception [inline, protected]
 

void alma::acs::daemontest::ServicesDaemonTest::tearDown  )  throws Exception [inline, protected]
 

void alma::acs::daemontest::ServicesDaemonTest::testNamingSrvStartStopCheckCallback  )  throws Exception [inline]
 

Starts and stops the naming service via the daemon, checking the callbacks.

void alma::acs::daemontest::ServicesDaemonTest::testServicesBuilder  )  throws Exception [inline]
 

void alma::acs::daemontest::ServicesDaemonTest::testStartAcsServiceIndividually  )  throws Throwable [inline]
 

Simple test that only uses the start_xxx and Stop_xxx methods of the daemon, which is one step up from the old acsStart method, but does not use the convenience of the service description. All services are started on the same host. Later they are stopped.

void alma::acs::daemontest::ServicesDaemonTest::testStartServiceTwice  )  throws Exception [inline]
 

Test starting service twice. It must return ServiceAlreadyRunning exception (immediately or via callback).

void alma::acs::daemontest::ServicesDaemonTest::testStopServiceBeforeStarted  )  throws Exception [inline]
 


Member Data Documentation

AcsCorba alma::acs::daemontest::ServicesDaemonTest::acsCorba [private]
 

ServicesDaemon alma::acs::daemontest::ServicesDaemonTest::daemon [private]
 

String alma::acs::daemontest::ServicesDaemonTest::host [private]
 

short alma::acs::daemontest::ServicesDaemonTest::instanceNumber = (short) ACSPorts.getBasePort() [private]
 

Logger alma::acs::daemontest::ServicesDaemonTest::logger [protected]
 

final String alma::acs::daemontest::ServicesDaemonTest::namePrefix = "ServicesDaemonTest" [static, private]
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:52:35 2009 for ACS Java API by doxygen 1.3.8