org::xmlBlaster::test::TestQueue Class Reference

Tests the queue entry and queue functionality. More...

Collaboration diagram for org::xmlBlaster::test::TestQueue:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TestQueue (Global &global, string name)
virtual ~TestQueue ()
void destroyQueue ()
void testPublishCompare ()
void testConnectCompare ()
void testMixedCompare ()
void testWithOnePublishEntry ()
void testWithOneConnectEntry ()
void testOrder ()
void testMaxNumOfEntries ()
void testMaxNumOfBytes ()
void setUp ()
void tearDown ()

Public Attributes

std::vector< string > types
 The values for "-queue/connection/type";.

Detailed Description

Tests the queue entry and queue functionality.

The following is tested here:

Definition at line 37 of file TestQueue.cpp.


Constructor & Destructor Documentation

org::xmlBlaster::test::TestQueue::TestQueue ( Global global,
string  name 
)

Definition at line 51 of file TestQueue.cpp.

References types.

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

Definition at line 59 of file TestQueue.cpp.


Member Function Documentation

void org::xmlBlaster::test::TestQueue::destroyQueue (  ) 

Definition at line 61 of file TestQueue.cpp.

References org::xmlBlaster::util::queue::I_Queue::destroy(), org::xmlBlaster::util::queue::QueueFactory::getFactory(), org::xmlBlaster::util::queue::QueueFactory::getPlugin(), and org::xmlBlaster::util::queue::QueueFactory::releasePlugin().

Referenced by setUp().

void org::xmlBlaster::test::TestQueue::testPublishCompare (  ) 

Definition at line 68 of file TestQueue.cpp.

References org::xmlBlaster::test::assertEquals(), and org::xmlBlaster::util::I_Log::info().

Referenced by main().

void org::xmlBlaster::test::TestQueue::testConnectCompare (  ) 

Definition at line 91 of file TestQueue.cpp.

References org::xmlBlaster::test::assertEquals(), and org::xmlBlaster::util::I_Log::info().

Referenced by main().

void org::xmlBlaster::test::TestQueue::testMixedCompare (  ) 

Definition at line 111 of file TestQueue.cpp.

References org::xmlBlaster::test::assertEquals(), and org::xmlBlaster::util::I_Log::info().

Referenced by main().

void org::xmlBlaster::test::TestQueue::testWithOnePublishEntry (  ) 

Definition at line 140 of file TestQueue.cpp.

References org::xmlBlaster::test::assertEquals(), org::xmlBlaster::util::queue::I_Queue::empty(), org::xmlBlaster::util::queue::QueueFactory::getFactory(), org::xmlBlaster::util::queue::I_Queue::getNumOfEntries(), org::xmlBlaster::util::queue::QueueFactory::getPlugin(), org::xmlBlaster::util::queue::MsgQueueEntry::getPriority(), org::xmlBlaster::util::qos::QosData::getPriority(), org::xmlBlaster::util::MessageUnit::getQos(), org::xmlBlaster::util::queue::MsgQueueEntry::getUniqueId(), org::xmlBlaster::util::I_Log::info(), org::xmlBlaster::util::queue::I_Queue::peekWithSamePriority(), org::xmlBlaster::util::queue::I_Queue::put(), and org::xmlBlaster::util::queue::I_Queue::randomRemove().

Referenced by main().

void org::xmlBlaster::test::TestQueue::testWithOneConnectEntry (  ) 

Definition at line 175 of file TestQueue.cpp.

References org::xmlBlaster::test::assertEquals(), org::xmlBlaster::util::queue::I_Queue::empty(), org::xmlBlaster::util::queue::QueueFactory::getFactory(), org::xmlBlaster::util::queue::QueueFactory::getPlugin(), org::xmlBlaster::util::I_Log::info(), org::xmlBlaster::util::queue::I_Queue::peekWithSamePriority(), org::xmlBlaster::util::queue::I_Queue::put(), and org::xmlBlaster::util::queue::I_Queue::randomRemove().

Referenced by main().

void org::xmlBlaster::test::TestQueue::testOrder (  ) 

Definition at line 195 of file TestQueue.cpp.

References org::xmlBlaster::test::assertEquals(), org::xmlBlaster::util::queue::I_Queue::empty(), org::xmlBlaster::util::queue::ConnectQueueEntry::getConnectQos(), org::xmlBlaster::util::queue::QueueFactory::getFactory(), org::xmlBlaster::util::queue::QueueFactory::getPlugin(), org::xmlBlaster::util::I_Log::info(), org::xmlBlaster::util::queue::I_Queue::peekWithSamePriority(), org::xmlBlaster::util::queue::I_Queue::put(), and org::xmlBlaster::util::queue::I_Queue::randomRemove().

Referenced by main().

void org::xmlBlaster::test::TestQueue::testMaxNumOfEntries (  ) 

Definition at line 275 of file TestQueue.cpp.

References org::xmlBlaster::test::assertEquals(), org::xmlBlaster::util::queue::I_Queue::clear(), org::xmlBlaster::util::I_Log::error(), org::xmlBlaster::util::XmlBlasterException::getErrorCodeStr(), org::xmlBlaster::util::queue::QueueFactory::getFactory(), org::xmlBlaster::util::queue::QueueFactory::getPlugin(), org::xmlBlaster::util::I_Log::info(), org::xmlBlaster::util::queue::I_Queue::put(), and org::xmlBlaster::util::qos::storage::QueuePropertyBase::setMaxEntries().

Referenced by main().

void org::xmlBlaster::test::TestQueue::testMaxNumOfBytes (  ) 

Definition at line 312 of file TestQueue.cpp.

References org::xmlBlaster::test::assertEquals(), org::xmlBlaster::util::I_Log::error(), org::xmlBlaster::util::XmlBlasterException::getErrorCodeStr(), org::xmlBlaster::util::queue::QueueFactory::getFactory(), org::xmlBlaster::util::queue::I_Queue::getMaxNumOfBytes(), org::xmlBlaster::util::queue::I_Queue::getNumOfBytes(), org::xmlBlaster::util::queue::I_Queue::getNumOfEntries(), org::xmlBlaster::util::queue::QueueFactory::getPlugin(), org::xmlBlaster::util::queue::ConnectQueueEntry::getSizeInBytes(), org::xmlBlaster::util::I_Log::info(), org::xmlBlaster::util::lexical_cast(), org::xmlBlaster::util::queue::I_Queue::put(), org::xmlBlaster::util::qos::storage::QueuePropertyBase::setMaxBytes(), and org::xmlBlaster::util::I_Log::trace().

Referenced by main().

void org::xmlBlaster::test::TestQueue::setUp (  ) 

Definition at line 360 of file TestQueue.cpp.

References destroyQueue().

Referenced by main().

void org::xmlBlaster::test::TestQueue::tearDown (  ) 

Definition at line 365 of file TestQueue.cpp.

References org::xmlBlaster::util::queue::QueueFactory::getFactory(), and org::xmlBlaster::util::queue::QueueFactory::releasePlugin().

Referenced by main().


Member Data Documentation

std::vector<string> org::xmlBlaster::test::TestQueue::types

The values for "-queue/connection/type";.

Definition at line 48 of file TestQueue.cpp.

Referenced by main(), and TestQueue().


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