org::xmlBlaster::test::TestGet Class Reference

Inheritance diagram for org::xmlBlaster::test::TestGet:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TestGet (int args, char *argc[], string &loginName)
 Constructs the TestGet object.
 ~TestGet ()
void setUp ()
 Sets up the fixture.
void tearDown ()
 Tears down the fixture.
void testGet ()
 TEST: Get an not existing and an existing message.
void testMany ()
 LOAD TEST: get 50 times a non-existing message.
void usage ()

Detailed Description

Definition at line 29 of file TestGet.cpp.


Constructor & Destructor Documentation

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

Constructs the TestGet object.

Parameters:
loginName The name to login to the xmlBlaster

Definition at line 46 of file TestGet.cpp.

org::xmlBlaster::test::TestGet::~TestGet (  ) 

Definition at line 57 of file TestGet.cpp.


Member Function Documentation

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

Sets up the fixture.

Connect to xmlBlaster and login

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

Definition at line 66 of file TestGet.cpp.

References org::xmlBlaster::client::XmlBlasterAccess::connect(), org::xmlBlaster::test::TestSuite::connection_, org::xmlBlaster::util::I_Log::error(), org::xmlBlaster::util::Global::getBuildTimestamp(), 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::util::qos::ConnectQosData::setSecurityQos(), org::xmlBlaster::test::TestSuite::setUp(), org::xmlBlaster::util::XmlBlasterException::toXml(), and usage().

Referenced by main().

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

Tears down the fixture.

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

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

Definition at line 91 of file TestGet.cpp.

References org::xmlBlaster::test::TestSuite::connection_, org::xmlBlaster::client::XmlBlasterAccess::disconnect(), org::xmlBlaster::client::XmlBlasterAccess::erase(), org::xmlBlaster::util::I_Log::error(), org::xmlBlaster::test::TestSuite::global_, org::xmlBlaster::util::I_Log::info(), org::xmlBlaster::test::TestSuite::log_, org::xmlBlaster::test::TestSuite::ME, org::xmlBlaster::client::key::UnSubscribeKey::setOid(), org::xmlBlaster::util::thread::Thread::sleep(), org::xmlBlaster::test::TestSuite::tearDown(), and org::xmlBlaster::util::XmlBlasterException::toXml().

Referenced by main().

void org::xmlBlaster::test::TestGet::testGet (  ) 

TEST: Get an not existing and an existing message.

The returned content is checked

Definition at line 123 of file TestGet.cpp.

References org::xmlBlaster::test::TestSuite::connection_, org::xmlBlaster::util::I_Log::error(), org::xmlBlaster::client::XmlBlasterAccess::get(), org::xmlBlaster::util::XmlBlasterException::getMessage(), 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::publish(), org::xmlBlaster::client::key::PublishKey::setContentMime(), org::xmlBlaster::client::key::PublishKey::setOid(), org::xmlBlaster::client::key::UnSubscribeKey::setOid(), org::xmlBlaster::util::XmlBlasterException::toXml(), org::xmlBlaster::util::I_Log::trace(), and usage().

Referenced by main().

void org::xmlBlaster::test::TestGet::testMany (  ) 

LOAD TEST: get 50 times a non-existing message.

Definition at line 189 of file TestGet.cpp.

References org::xmlBlaster::test::TestSuite::connection_, org::xmlBlaster::util::I_Log::error(), org::xmlBlaster::client::XmlBlasterAccess::get(), org::xmlBlaster::test::TestSuite::global_, org::xmlBlaster::util::I_Log::info(), org::xmlBlaster::test::TestSuite::log_, org::xmlBlaster::test::TestSuite::ME, org::xmlBlaster::client::key::UnSubscribeKey::setOid(), and org::xmlBlaster::util::XmlBlasterException::toXml().

Referenced by main().

void org::xmlBlaster::test::TestGet::usage (  )  [virtual]

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

Definition at line 210 of file TestGet.cpp.

References org::xmlBlaster::test::TestSuite::log_, org::xmlBlaster::test::TestSuite::ME, org::xmlBlaster::util::I_Log::plain(), org::xmlBlaster::util::I_Log::usage(), org::xmlBlaster::client::XmlBlasterAccess::usage(), and org::xmlBlaster::test::TestSuite::usage().

Referenced by setUp(), and testGet().


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