|
||||||||||
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.unit.transacted.CommitRollbackTest
public class CommitRollbackTest
This class tests a number of commits and roll back scenarios Assumptions; - Assumes empty Queue
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.qpid.test.utils.QpidBrokerTestCase |
---|
QpidBrokerTestCase.MessageType |
Field Summary | |
---|---|
(package private) Queue |
_jmsQueue
|
protected org.apache.qpid.client.AMQConnection |
conn
|
protected String |
payload
|
protected String |
queue
|
protected static int |
testMethod
|
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 | |
---|---|
CommitRollbackTest()
|
Method Summary | |
---|---|
protected void |
setUp()
|
protected void |
tearDown()
|
void |
testCommitWhithinOnMessage()
Qpid-1163 Check that when commt is called inside onMessage then the last message is nor redelivered. |
void |
testGetThenCloseDisconnect()
GET a text message, close consumer, disconnect before commit, confirm it is still there. |
void |
testGetThenCloseRollback()
GET a text message, close message producer, rollback, confirm it is still there. |
void |
testGetThenDisconnect()
GET a text message, disconnect before commit, confirm it is still there. |
void |
testGetThenRollback()
GET a text message, rollback, confirm it is still there. |
void |
testPutThenCloseDisconnect()
PUT a text message, disconnect before commit, confirm it is gone. |
void |
testPutThenDisconnect()
PUT a text message, disconnect before commit, confirm it is gone. |
void |
testPutThenRollback()
PUT a text message, rollback, confirm message is gone. |
void |
testPutThenRollbackThenGet()
|
void |
testSend2ThenCloseAfter1andTryAgain()
This test sends two messages receives on of them but doesn't ack it. |
void |
testSend2ThenRollback()
Test that rolling back a session purges the dispatcher queue, and the messages arrive in the correct order |
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 org.apache.qpid.client.AMQConnection conn
protected String queue
protected static int testMethod
protected String payload
Queue _jmsQueue
Constructor Detail |
---|
public CommitRollbackTest()
Method Detail |
---|
protected void setUp() throws Exception
setUp
in class QpidBrokerTestCase
Exception
protected void tearDown() throws Exception
tearDown
in class QpidBrokerTestCase
Exception
public void testPutThenDisconnect() throws Exception
Exception
- On errorpublic void testPutThenCloseDisconnect() throws Exception
Exception
- On errorpublic void testPutThenRollback() throws Exception
Exception
- On errorpublic void testGetThenDisconnect() throws Exception
Exception
- On errorpublic void testGetThenCloseDisconnect() throws Exception
Exception
- On errorpublic void testGetThenRollback() throws Exception
Exception
- On errorpublic void testGetThenCloseRollback() throws Exception
Exception
- On errorpublic void testSend2ThenRollback() throws Exception
Exception
- On errorpublic void testSend2ThenCloseAfter1andTryAgain() throws Exception
Exception
public void testPutThenRollbackThenGet() throws Exception
Exception
public void testCommitWhithinOnMessage() throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |