|
||||||||||
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
public abstract class DistributedTestDecorator
DistributedTestDecorator is a base class for writing test decorators that invite test clients to participate in
distributed test cases. It provides a helper method, signupClients(org.apache.qpid.test.framework.FrameworkBaseCase)
, that broadcasts an invitation and
returns the set of test clients that are available to particiapte in the test.
FrameworkBaseCase
test, it replaces the default CircuitFactory
implementations
with a suitable circuit factory for distributed tests. Concrete implementations can use this to configure the sending
and receiving roles on the test.
Responsibilities | Collaborations |
---|---|
Broadcast test invitations and collect enlists. | ConversationFactory .
|
Field Summary | |
---|---|
(package private) Set<TestClientDetails> |
allClients
Holds the contact information for all test clients that are available and that may take part in the test. |
(package private) Connection |
connection
Holds the connection that the control conversation is held over. |
protected Destination |
controlTopic
Holds the control topic, on which test invitations are broadcast. |
(package private) ConversationFactory |
conversationFactory
Holds the conversation helper for the control level conversation for coordinating the test through. |
(package private) org.apache.qpid.junit.extensions.WrappedSuiteTestDecorator |
testSuite
Holds the underlying test suite that this decorator wraps. |
Fields inherited from class org.apache.qpid.junit.extensions.WrappedSuiteTestDecorator |
---|
suite |
Fields inherited from class junit.extensions.TestDecorator |
---|
fTest |
Constructor Summary | |
---|---|
DistributedTestDecorator(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 | |
---|---|
abstract CircuitFactory |
getTestSequencer()
Should provide the distributed test sequencer to pass to FrameworkBaseCase
tests. |
abstract void |
run(junit.framework.TestResult testResult)
Should run all of the tests in the wrapped test suite. |
protected Set<TestClientDetails> |
signupClients(FrameworkBaseCase coordTest)
Broadcasts an invitation to participate in a coordinating test case to find out what clients are available to run the test case. |
String |
toString()
Prints a string summarizing this test decorator, mainly for debugging purposes. |
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 |
---|
Set<TestClientDetails> allClients
ConversationFactory conversationFactory
Connection connection
org.apache.qpid.junit.extensions.WrappedSuiteTestDecorator testSuite
protected Destination controlTopic
Constructor Detail |
---|
public DistributedTestDecorator(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 abstract void run(junit.framework.TestResult testResult)
run
in interface junit.framework.Test
run
in class junit.extensions.TestDecorator
testResult
- The the results object to monitor the test results with.public abstract CircuitFactory getTestSequencer()
FrameworkBaseCase
tests.
protected Set<TestClientDetails> signupClients(FrameworkBaseCase coordTest)
coordTest
- The coordinating test case to broadcast an inviate for.
public String toString()
toString
in class junit.extensions.TestDecorator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |