org::xmlBlaster::test::TestKeys Class Reference

Inheritance diagram for org::xmlBlaster::test::TestKeys:

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

Collaboration graph
[legend]
List of all members.

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 ()

Detailed Description

Definition at line 26 of file TestKeys.cpp.


Constructor & Destructor Documentation

org::xmlBlaster::test::TestKeys::TestKeys ( int  args,
char *  argc[] 
)

Constructs the TestKeys object.

Parameters:
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.


Member Function Documentation

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().


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