org.apache.qpid.test.framework.sequencers
Class InteropCircuitFactory

java.lang.Object
  extended by org.apache.qpid.test.framework.sequencers.BaseCircuitFactory
      extended by org.apache.qpid.test.framework.sequencers.InteropCircuitFactory
All Implemented Interfaces:
CircuitFactory

public class InteropCircuitFactory
extends BaseCircuitFactory

InteropCircuitFactory is a circuit factory that creates distributed test circuits. Given a set of participating test client nodes, it assigns one node to the SENDER role and one the RECEIVER role.

CRC Card
Responsibilities Collaborations
Create distributed circuits from pairs of test nodes, for interop style testing.

Todo:
The partitioning of a set of nodes into sender and receiver roles is actually done by the interop test decorator. See the todo comment in FanOutCircuitFactory about merging the factories with the decorators, or more carefully dividing up responsibilities between them., The squenceTest code is deprecated, but currently still used by the interop tests. It will be removed once it have been fully replaced by the default test procedure.

Field Summary
(package private)  org.apache.log4j.Logger log
          Used for debugging.
 
Fields inherited from class org.apache.qpid.test.framework.sequencers.BaseCircuitFactory
conversationFactory, receivers, sender
 
Constructor Summary
InteropCircuitFactory()
           
 
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.
 void sequenceTest(Circuit testCircuit, List<Assertion> assertions, Properties testProperties)
          Holds a test coordinating conversation with the test clients.
 
Methods inherited from class org.apache.qpid.test.framework.sequencers.BaseCircuitFactory
createCircuit, getConversationFactory, getReceivers, getSender, setConversationFactory, setReceiver, setSender
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

org.apache.log4j.Logger log
Used for debugging.

Constructor Detail

InteropCircuitFactory

public InteropCircuitFactory()
Method Detail

createCircuit

public 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.

sequenceTest

public void sequenceTest(Circuit testCircuit,
                         List<Assertion> assertions,
                         Properties testProperties)
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.


Licensed to the Apache Software Foundation