TestControllerPool Class Reference

Test class for controller connection policy Tests suspected controller queuing and update A controller *MUST* run locally for test success !!! More...

#include <TestControllerPool.hpp>

List of all members.

Public Member Functions

void setUp ()
 Nothing to setup.
void tearDown ()
 Nothing to tearDown.
void testRoundRobinSequence ()
 Adds 2 out of 4 controllers to the list of suspects and checks that the getController function returns the non suspect controller in the good order.
void testSequenceWithDelete ()
 Creates parameters with 2 controllers, gets controllers 3 times checking the sequence 1-2-1, then deletes parameters and checks that after creating new parameters, the retrieved controller is the 2nd one.
void testNoMoreController ()
 Adds all controllers to the list of suspects and checks that an error is thrown when asking for another controller (NoMoreControllerException).
void testPoolManager ()
 Ask for identical/different pools and check that the pool manager reuses/doesn't reuse the pools.
void testSuspectListUpdate ()
 USER INTERACTION NEEDED ! Adds valid controllers to the list of suspects and checks that they come up again.

Static Public Member Functions

static CppUnit::Test * suite ()
 Suite of tests to be run.


Detailed Description

Test class for controller connection policy Tests suspected controller queuing and update A controller *MUST* run locally for test success !!!


Member Function Documentation

void TestControllerPool::testSuspectListUpdate (  ) 

USER INTERACTION NEEDED ! Adds valid controllers to the list of suspects and checks that they come up again.

Note: this test needs 4 (basic) servers to run locally !!! (user input is asked when servers are ready). These servers can be simulated by Lenart Janos's socket utility ("socket -s <port>" command) See http://packages.debian.org/stable/net/socket for more info


The documentation for this class was generated from the following file:
Generated on Fri Mar 9 17:40:19 2007 for Carob by  doxygen 1.4.7