|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.qpid.test.utils.QpidTestCase
org.apache.qpid.test.utils.QpidBrokerTestCase
org.apache.qpid.test.utils.FailoverBaseCase
org.apache.qpid.test.unit.ack.AcknowledgeTest
public class AcknowledgeTest
Test the various JMS Acknowledge Modes the single testAcking method does all the work of receiving and validation of acking. The ack mode is provided from the various test methods.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.qpid.test.utils.QpidBrokerTestCase |
---|
QpidBrokerTestCase.MessageType |
Field Summary | |
---|---|
protected Connection |
_connection
|
protected MessageConsumer |
_consumer
|
protected Session |
_consumerSession
|
protected MessageProducer |
_producer
|
protected Queue |
_queue
|
protected int |
NUM_MESSAGES
|
Fields inherited from class org.apache.qpid.test.utils.FailoverBaseCase |
---|
_logger, DEFAULT_FAILOVER_TIME, FAILING_PORT, FAILING_VM_PORT, failingPort |
Fields inherited from class org.apache.qpid.test.utils.QpidBrokerTestCase |
---|
_broker, _brokerLanguage, _brokerLogPrefix, _brokerOutputStream, _brokerPersistent, _brokers, _configFile, _connectionFactory, _connections, _initialContext, _interleaveBrokerLog, _output, _outputFile, _testName, BROKER_READY, CONTENT, CPP, DEFAULT_MANAGEMENT_PORT, DEFAULT_MESSAGE_SIZE, DEFAULT_PORT, DEFAULT_SSL_PORT, DEFAULT_VM_PORT, EXTERNAL, INDEX, JAVA, LOGMONITOR_TIMEOUT, QPID_HOME, QpidHome, QUEUE, RECEIVE_TIMEOUT, TOPIC, VM |
Fields inherited from class org.apache.qpid.test.utils.QpidTestCase |
---|
MEMORY_STORE_CLASS_NAME, MS_CLASS_NAME_KEY |
Constructor Summary | |
---|---|
AcknowledgeTest()
|
Method Summary | |
---|---|
protected void |
doAcknowlegement(Message msg)
Perform the acknowledgement of messages if additionally required. |
protected void |
init(boolean transacted,
int mode)
|
protected void |
setUp()
|
protected void |
testAcking(boolean transacted,
int mode)
The main test method. |
void |
testAutoAck()
|
void |
testClientAck()
|
void |
testDupsOk()
|
void |
testNoAck()
|
void |
testPreAck()
|
void |
testTransacted()
|
Methods inherited from class org.apache.qpid.test.utils.FailoverBaseCase |
---|
failBroker, getConnectionFactory, getFailingPort, tearDown |
Methods inherited from class org.apache.qpid.test.utils.QpidTestCase |
---|
getTestProfileMessageStoreClassName, run |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, runTest, setName, toString |
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 |
---|
protected int NUM_MESSAGES
protected Connection _connection
protected Queue _queue
protected Session _consumerSession
protected MessageConsumer _consumer
protected MessageProducer _producer
Constructor Detail |
---|
public AcknowledgeTest()
Method Detail |
---|
protected void setUp() throws Exception
setUp
in class FailoverBaseCase
Exception
protected void init(boolean transacted, int mode) throws Exception
Exception
protected void testAcking(boolean transacted, int mode) throws Exception
transacted
- mode
-
Exception
protected void doAcknowlegement(Message msg) throws JMSException
msg
-
JMSException
public void testClientAck() throws Exception
Exception
public void testAutoAck() throws Exception
Exception
public void testTransacted() throws Exception
Exception
public void testDupsOk() throws Exception
Exception
public void testNoAck() throws Exception
Exception
public void testPreAck() throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |