|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.extensions.TestDecorator
org.apache.qpid.junit.extensions.WrappedSuiteTestDecorator
org.apache.qpid.test.framework.distributedtesting.DistributedTestDecorator
org.apache.qpid.test.framework.distributedtesting.FanOutTestDecorator
public class FanOutTestDecorator
FanOutTestDecorator is an DistributedTestDecorator
that runs one test client in the sender role, and the remainder
in the receivers role. It also has the capability to listen for new test cases joining the test beyond the initial start
point. This feature can be usefull when experimenting with adding more load, in the form of more test clients, to assess
its impact on a running test.
Responsibilities | Collaborations |
---|---|
Execute coordinated test cases. | FrameworkBaseCase
|
Accept test clients joining a running test. |
Field Summary | |
---|---|
(package private) FrameworkBaseCase |
currentTest
Holds the currently running test case. |
Fields inherited from class org.apache.qpid.test.framework.distributedtesting.DistributedTestDecorator |
---|
allClients, connection, controlTopic, conversationFactory, testSuite |
Fields inherited from class org.apache.qpid.junit.extensions.WrappedSuiteTestDecorator |
---|
suite |
Fields inherited from class junit.extensions.TestDecorator |
---|
fTest |
Constructor Summary | |
---|---|
FanOutTestDecorator(org.apache.qpid.junit.extensions.WrappedSuiteTestDecorator suite,
Set<TestClientDetails> availableClients,
ConversationFactory controlConversation,
Connection controlConnection)
Creates a wrapped suite test decorator from another one. |
Method Summary | |
---|---|
CircuitFactory |
getTestSequencer()
Should provide the distributed test sequencer to pass to FrameworkBaseCase
tests. |
void |
onMessage(Message message)
Listens to incoming messages on the control topic. |
void |
run(junit.framework.TestResult testResult)
Broadcasts a test invitation and accepts enlists from participating clients. |
String |
toString()
Prints a string summarizing this test decorator, mainly for debugging purposes. |
Methods inherited from class org.apache.qpid.test.framework.distributedtesting.DistributedTestDecorator |
---|
signupClients |
Methods inherited from class org.apache.qpid.junit.extensions.WrappedSuiteTestDecorator |
---|
countTestCases, getAllUnderlyingTests, testAt |
Methods inherited from class junit.extensions.TestDecorator |
---|
basicRun, getTest |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
FrameworkBaseCase currentTest
Constructor Detail |
---|
public FanOutTestDecorator(org.apache.qpid.junit.extensions.WrappedSuiteTestDecorator suite, Set<TestClientDetails> availableClients, ConversationFactory controlConversation, Connection controlConnection)
suite
- The test suite.availableClients
- The list of all clients that responded to the compulsory invite.controlConversation
- The conversation helper for the control level, test coordination conversation.controlConnection
- The connection that the coordination messages are sent over.Method Detail |
---|
public void run(junit.framework.TestResult testResult)
run
in interface junit.framework.Test
run
in class DistributedTestDecorator
testResult
- The the results object to monitor the test results with.public CircuitFactory getTestSequencer()
FrameworkBaseCase
tests.
getTestSequencer
in class DistributedTestDecorator
public void onMessage(Message message)
onMessage
in interface MessageListener
message
- The incoming control message.public String toString()
toString
in class DistributedTestDecorator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |