Public Member Functions | |
TestKeys (int args, char *argc[]) | |
Constructs the TestKeys object. | |
virtual | ~TestKeys () |
void | setUp () |
Sets up the fixture. | |
void | tearDown () |
Tears down the fixture. | |
void | testPublishKey () |
TEST: Construct a message and publish it. | |
void | usage () |
Definition at line 26 of file TestKeys.cpp.
org::xmlBlaster::test::TestKeys::TestKeys | ( | int | args, | |
char * | argc[] | |||
) |
Constructs the TestKeys object.
testName | The name used in the test suite | |
loginName | The name to login to the xmlBlaster |
Definition at line 37 of file TestKeys.cpp.
virtual org::xmlBlaster::test::TestKeys::~TestKeys | ( | ) | [virtual] |
Definition at line 41 of file TestKeys.cpp.
void org::xmlBlaster::test::TestKeys::setUp | ( | ) | [virtual] |
Sets up the fixture.
Connect to xmlBlaster and login
Reimplemented from org::xmlBlaster::test::TestSuite.
Definition at line 49 of file TestKeys.cpp.
References org::xmlBlaster::test::TestSuite::setUp().
Referenced by main().
void org::xmlBlaster::test::TestKeys::tearDown | ( | ) | [virtual] |
Tears down the fixture.
cleaning up .... erase() the previous message OID and logout
Reimplemented from org::xmlBlaster::test::TestSuite.
Definition at line 59 of file TestKeys.cpp.
References 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::TestKeys::testPublishKey | ( | ) |
TEST: Construct a message and publish it.
The returned publishOid is checked
Definition at line 70 of file TestKeys.cpp.
References org::xmlBlaster::test::assertEquals(), org::xmlBlaster::util::key::MsgKeyData::getClientTags(), org::xmlBlaster::util::key::KeyData::getContentMime(), org::xmlBlaster::client::key::MsgKeyBase::getContentMime(), org::xmlBlaster::util::key::KeyData::getContentMimeExtended(), org::xmlBlaster::client::key::MsgKeyBase::getContentMimeExtended(), org::xmlBlaster::client::key::MsgKeyBase::getData(), org::xmlBlaster::test::TestSuite::global_, org::xmlBlaster::test::TestSuite::log_, org::xmlBlaster::test::TestSuite::ME, org::xmlBlaster::util::key::MsgKeyFactory::readObject(), org::xmlBlaster::client::key::PublishKey::setClientTags(), org::xmlBlaster::client::key::PublishKey::setContentMime(), org::xmlBlaster::client::key::PublishKey::setContentMimeExtended(), org::xmlBlaster::client::key::PublishKey::setOid(), org::xmlBlaster::client::key::MsgKeyBase::toXml(), and org::xmlBlaster::util::I_Log::trace().
Referenced by main().
void org::xmlBlaster::test::TestKeys::usage | ( | ) | [virtual] |
Reimplemented from org::xmlBlaster::test::TestSuite.
Definition at line 108 of file TestKeys.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().