org.apache.qpid.test.framework.sequencers
Interface CircuitFactory

All Known Implementing Classes:
BaseCircuitFactory, FanOutCircuitFactory, InteropCircuitFactory, LocalAMQPCircuitFactory, LocalCircuitFactory

public interface CircuitFactory

A CircuitFactory is responsibile for creating test circuits appropriate to the context that a test case is running in, and providing an implementation of a standard test procedure over a test circuit.

CRC Card
Responsibilities
Provide a standard test procedure over a test circuit.
Construct test circuits appropriate to a tests context.


Method Summary
 Circuit createCircuit(Connection connection, org.apache.qpid.junit.extensions.util.ParsedProperties testProperties)
          Creates a test circuit for the test, configered by the test parameters specified.
 List<TestClientDetails> getReceivers()
          Supplies the receiving test client.
 TestClientDetails getSender()
          Supplies the sending test client.
 void sequenceTest(Circuit testCircuit, List<Assertion> assertions, Properties testProperties)
          Deprecated. Use test circuits and Circuit.test instead.
 void setConversationFactory(ConversationFactory conversationFactory)
          Accepts the conversation factory over which to hold the test coordinating conversation.
 void setReceiver(TestClientDetails receiver)
          Sets the receiving test client to coordinate the test with.
 void setSender(TestClientDetails sender)
          Sets the sender test client to coordinate the test with.
 

Method Detail

sequenceTest

void sequenceTest(Circuit testCircuit,
                  List<Assertion> assertions,
                  Properties testProperties)
Deprecated. Use test circuits and Circuit.test instead.

Holds a test coordinating conversation with the test clients. This should consist of assigning the test roles, begining the test, gathering the test reports from the participants, and checking for assertion failures against the test reports.

Parameters:
testCircuit - The test circuit.
assertions - The list of assertions to apply to the test circuit.
testProperties - The test case definition.

createCircuit

Circuit createCircuit(Connection connection,
                      org.apache.qpid.junit.extensions.util.ParsedProperties testProperties)
Creates a test circuit for the test, configered by the test parameters specified.

Parameters:
testProperties - The test parameters.
Returns:
A test circuit.

setSender

void setSender(TestClientDetails sender)
Sets the sender test client to coordinate the test with.

Parameters:
sender - The contact details of the sending client in the test.

setReceiver

void setReceiver(TestClientDetails receiver)
Sets the receiving test client to coordinate the test with.

Parameters:
receiver - The contact details of the sending client in the test.

getSender

TestClientDetails getSender()
Supplies the sending test client.

Returns:
The sending test client.

getReceivers

List<TestClientDetails> getReceivers()
Supplies the receiving test client.

Returns:
The receiving test client.

setConversationFactory

void setConversationFactory(ConversationFactory conversationFactory)
Accepts the conversation factory over which to hold the test coordinating conversation.

Parameters:
conversationFactory - The conversation factory to coordinate the test over.


Licensed to the Apache Software Foundation