#include <TestControllerPool.hpp>
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. | |
| 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
1.4.7