org::xmlBlaster::test::TestCommand Class Reference

Inheritance diagram for org::xmlBlaster::test::TestCommand:

Inheritance graph
[legend]
Collaboration diagram for org::xmlBlaster::test::TestCommand:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TestCommand (int args, char *argc[], string &loginName)
 Constructs the TestCommand object.
virtual ~TestCommand ()
void setUp ()
 Sets up the fixture.
void tearDown ()
 Tears down the fixture.
void testSetCallbackDispatcherActive ()
void testSendAdministrativeCommand ()
string update (string &sessionId, UpdateKey &updateKey, unsigned char *, long, UpdateQos &updateQos)

Detailed Description

Definition at line 60 of file TestCommand.cpp.


Constructor & Destructor Documentation

org::xmlBlaster::test::TestCommand::TestCommand ( int  args,
char *  argc[],
string &  loginName 
)

Constructs the TestCommand object.

Parameters:
testName The name used in the test suite
loginName The name to login to the xmlBlaster

Definition at line 88 of file TestCommand.cpp.

References org::xmlBlaster::test::TestSuite::log_.

virtual org::xmlBlaster::test::TestCommand::~TestCommand (  )  [virtual]

Definition at line 101 of file TestCommand.cpp.


Member Function Documentation

void org::xmlBlaster::test::TestCommand::setUp (  )  [virtual]

Sets up the fixture.

Connect to xmlBlaster and login

Reimplemented from org::xmlBlaster::test::TestSuite.

Definition at line 110 of file TestCommand.cpp.

References org::xmlBlaster::test::assertEquals(), org::xmlBlaster::client::XmlBlasterAccess::connect(), org::xmlBlaster::test::TestSuite::connection_, org::xmlBlaster::util::I_Log::error(), org::xmlBlaster::util::qos::SessionQosData::getAbsoluteName(), org::xmlBlaster::util::Global::getBuildTimestamp(), org::xmlBlaster::util::qos::ConnectQosData::getSessionQos(), org::xmlBlaster::util::qos::ConnectQosData::getSessionQosRef(), org::xmlBlaster::util::Global::getVersion(), org::xmlBlaster::test::TestSuite::global_, org::xmlBlaster::util::I_Log::info(), org::xmlBlaster::test::TestSuite::log_, org::xmlBlaster::test::TestSuite::ME, org::xmlBlaster::test::TestSuite::setUp(), org::xmlBlaster::util::XmlBlasterException::toXml(), and org::xmlBlaster::test::TestSuite::usage().

Referenced by main().

void org::xmlBlaster::test::TestCommand::tearDown (  )  [virtual]

Tears down the fixture.

cleaning up .... erase() the previous message OID and logout

Reimplemented from org::xmlBlaster::test::TestSuite.

Definition at line 139 of file TestCommand.cpp.

References org::xmlBlaster::test::TestSuite::connection_, org::xmlBlaster::client::XmlBlasterAccess::disconnect(), org::xmlBlaster::test::TestSuite::global_, org::xmlBlaster::util::I_Log::info(), org::xmlBlaster::test::TestSuite::log_, org::xmlBlaster::test::TestSuite::ME, and org::xmlBlaster::test::TestSuite::tearDown().

Referenced by main().

void org::xmlBlaster::test::TestCommand::testSetCallbackDispatcherActive (  ) 

Definition at line 163 of file TestCommand.cpp.

References org::xmlBlaster::test::TestSuite::connection_, org::xmlBlaster::util::I_Log::info(), org::xmlBlaster::test::TestSuite::log_, org::xmlBlaster::test::TestSuite::ME, org::xmlBlaster::client::XmlBlasterAccess::setCallbackDispatcherActive(), org::xmlBlaster::util::XmlBlasterException::toXml(), org::xmlBlaster::util::I_Log::trace(), and org::xmlBlaster::util::I_Log::warn().

Referenced by main().

void org::xmlBlaster::test::TestCommand::testSendAdministrativeCommand (  ) 

Definition at line 184 of file TestCommand.cpp.

References org::xmlBlaster::test::TestSuite::connection_, org::xmlBlaster::util::Global::getId(), org::xmlBlaster::test::TestSuite::global_, org::xmlBlaster::util::I_Log::info(), org::xmlBlaster::test::TestSuite::log_, org::xmlBlaster::test::TestSuite::ME, org::xmlBlaster::client::XmlBlasterAccess::sendAdministrativeCommand(), org::xmlBlaster::util::XmlBlasterException::toXml(), org::xmlBlaster::util::I_Log::trace(), and org::xmlBlaster::util::I_Log::warn().

Referenced by main().

string org::xmlBlaster::test::TestCommand::update ( string &  sessionId,
UpdateKey updateKey,
unsigned char *  ,
long  ,
UpdateQos updateQos 
)

Definition at line 255 of file TestCommand.cpp.

References org::xmlBlaster::client::key::MsgKeyBase::getOid(), org::xmlBlaster::client::qos::GetReturnQos::getState(), org::xmlBlaster::util::I_Log::info(), org::xmlBlaster::test::TestSuite::log_, and org::xmlBlaster::test::TestSuite::ME.


The documentation for this class was generated from the following file: