Inheritance diagram for org::xmlBlaster::test::TestRam:
Public Member Functions | |
TestRam (int args, char *argc[], string &loginName) | |
~TestRam () | |
void | setUp () |
Sets up the fixture. | |
void | tearDown () |
Tears down the fixture. | |
void | testPublish () |
TEST: Construct a message and publish it. | |
void | testManyPublish () |
TEST: Construct 1000 messages and publish it. | |
void | usage () |
testName | The name used in the test suite | |
loginName | The name to login to the xmlBlaster |
Definition at line 42 of file TestRam.cpp.
org::xmlBlaster::test::TestRam::TestRam | ( | int | args, | |
char * | argc[], | |||
string & | loginName | |||
) |
Definition at line 56 of file TestRam.cpp.
org::xmlBlaster::test::TestRam::~TestRam | ( | ) |
Definition at line 65 of file TestRam.cpp.
void org::xmlBlaster::test::TestRam::setUp | ( | ) | [virtual] |
Sets up the fixture.
Connect to xmlBlaster and login
Reimplemented from org::xmlBlaster::test::TestSuite.
Definition at line 74 of file TestRam.cpp.
References org::xmlBlaster::client::XmlBlasterAccess::connect(), org::xmlBlaster::test::TestSuite::connection_, org::xmlBlaster::util::I_Log::error(), org::xmlBlaster::test::TestSuite::global_, 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::TestRam::tearDown | ( | ) | [virtual] |
Tears down the fixture.
cleaning up .... erase() the previous message OID and logout
Reimplemented from org::xmlBlaster::test::TestSuite.
Definition at line 97 of file TestRam.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, and org::xmlBlaster::util::XmlBlasterException::toXml().
Referenced by main().
void org::xmlBlaster::test::TestRam::testPublish | ( | ) |
TEST: Construct a message and publish it.
The returned publishOid is checked
Definition at line 128 of file TestRam.cpp.
References org::xmlBlaster::test::TestSuite::connection_, org::xmlBlaster::util::StopWatch::elapsed(), org::xmlBlaster::util::I_Log::error(), org::xmlBlaster::client::XmlBlasterAccess::get(), org::xmlBlaster::test::TestSuite::global_, org::xmlBlaster::util::I_Log::info(), org::xmlBlaster::util::lexical_cast(), org::xmlBlaster::test::TestSuite::log_, org::xmlBlaster::test::TestSuite::ME, org::xmlBlaster::client::XmlBlasterAccess::publishArr(), org::xmlBlaster::util::StopWatch::restart(), org::xmlBlaster::client::key::UnSubscribeKey::setOid(), org::xmlBlaster::util::XmlBlasterException::toXml(), org::xmlBlaster::util::I_Log::trace(), and org::xmlBlaster::util::I_Log::warn().
Referenced by testManyPublish().
void org::xmlBlaster::test::TestRam::testManyPublish | ( | ) |
TEST: Construct 1000 messages and publish it.
Definition at line 201 of file TestRam.cpp.
References testPublish().
Referenced by main().
void org::xmlBlaster::test::TestRam::usage | ( | ) | [virtual] |
Reimplemented from org::xmlBlaster::test::TestSuite.
Definition at line 206 of file TestRam.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().