org.apache.qpid.test.framework
Class LocalAMQPCircuitFactory
java.lang.Object
org.apache.qpid.test.framework.LocalCircuitFactory
org.apache.qpid.test.framework.LocalAMQPCircuitFactory
- All Implemented Interfaces:
- CircuitFactory
public class LocalAMQPCircuitFactory
- extends LocalCircuitFactory
LocalAMQPCircuitFactory is a test sequencer that creates test circuits with publishing and receiving ends rooted
on the same JVM, allowing AMQP/Qpid specific options to be applied to the circuit.
CRC Card
Responsibilities | Collaborations
|
---|
Provide a standard test procedure over a test circuit.
|
Construct test circuits appropriate to a tests context.
|
Construct test circuits the support AMQP specific options.
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocalAMQPCircuitFactory
public LocalAMQPCircuitFactory()
createPublisherCircuitEnd
public CircuitEndBase createPublisherCircuitEnd(Connection connection,
org.apache.qpid.junit.extensions.util.ParsedProperties testProps,
long uniqueId)
throws JMSException
- Builds a circuit end suitable for the publishing side of a test circuit, from standard test parameters.
- Overrides:
createPublisherCircuitEnd
in class LocalCircuitFactory
- Parameters:
connection
- The connection to build the circuit end on.testProps
- The test parameters to configure the circuit end construction.uniqueId
- A unique number to being numbering destinations from, to make this circuit unique.
- Returns:
- A circuit end suitable for the publishing side of a test circuit.
- Throws:
JMSException
- Any underlying JMSExceptions are allowed to fall through and fail the creation.
createReceiverCircuitEnd
public CircuitEndBase createReceiverCircuitEnd(Connection connection,
org.apache.qpid.junit.extensions.util.ParsedProperties testProps,
long uniqueId)
throws JMSException
- Builds a circuit end suitable for the receiving side of a test circuit, from standard test parameters.
- Overrides:
createReceiverCircuitEnd
in class LocalCircuitFactory
- Parameters:
connection
- The connection to build the circuit end on.testProps
- The test parameters to configure the circuit end construction.uniqueId
- A unique number to being numbering destinations from, to make this circuit unique.
- Returns:
- A circuit end suitable for the receiving side of a test circuit.
- Throws:
JMSException
- Any underlying JMSExceptions are allowed to fall through and fail the creation.
createPublisherFromCircuitEnd
protected LocalPublisherImpl createPublisherFromCircuitEnd(CircuitEndBase publisherEnd)
- Creates a local
Publisher
from a CircuitEnd
. The publisher implementation provides AMQP
specific assertion methods, for testing beyond JMS.
- Overrides:
createPublisherFromCircuitEnd
in class LocalCircuitFactory
- Parameters:
publisherEnd
- The publishing circuit end.
- Returns:
- A
Receiver
.
Licensed to the Apache Software Foundation