|
||||||||||
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.objectweb.jtests.jms.framework.JMSTestCase
org.objectweb.jtests.jms.framework.PTPTestCase
org.objectweb.jtests.jms.conform.session.SessionTest
public class SessionTest
Test sessions
See JMS specifications, �4.4 Session
Field Summary |
---|
Fields inherited from class org.objectweb.jtests.jms.framework.PTPTestCase |
---|
admin, ctx, receiver, receiverConnection, receiverQCF, receiverQueue, receiverSession, sender, senderConnection, senderQCF, senderQueue, senderSession |
Constructor Summary | |
---|---|
SessionTest(java.lang.String name)
|
Method Summary | |
---|---|
static junit.framework.Test |
suite()
Method to use this class in a Test suite |
void |
testAcknowledge()
Test that invoking the acknowledge() method of a received message
from a closed session must throw an IllegalStateException . |
void |
testCloseClosedSession()
Test that closing a closed session does not throw an exception. |
void |
testCommitNonTransactedSession()
Test that an attempt to call the commit() method on a
non transacted Session throws a
javax.jms.IllegalStateException . |
void |
testCommitTransactedSession()
Test that a call to the rollback() method on a
transacted Session rollbacks all
the messages sent in the transaction. |
void |
testGetTransacted()
Test that the getTransacted() method of a Session returns true
if the session is transacted, false else. |
void |
testRecoverTransactedSession()
Test that an attempt to call the recover() method on a
transacted Session throws a
javax.jms.IllegalStateException . |
void |
testRollbackNonTransactedSession()
Test that an attempt to call the roolback() method on a
non transacted Session throws a
javax.jms.IllegalStateException . |
void |
testRollbackTransactedSession()
Test that a call to the rollback() method on a
transacted Session rollbacks all
the messages sent in the transaction. |
void |
testUsedClosedSession()
Test that an attempt to use a Session which has been closed
throws a javax.jms.IllegalStateException . |
void |
testUseMessage()
Test that it is valid to use message objects created or received via the [closed] session with the exception of a received message acknowledge() method. |
Methods inherited from class org.objectweb.jtests.jms.framework.PTPTestCase |
---|
setUp, tearDown |
Methods inherited from class org.objectweb.jtests.jms.framework.JMSTestCase |
---|
fail, getProviderProperties |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, 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, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SessionTest(java.lang.String name)
Method Detail |
---|
public void testRecoverTransactedSession()
recover()
method on a
transacted Session
throws a
javax.jms.IllegalStateException
.
public void testRollbackTransactedSession()
rollback()
method on a
transacted Session
rollbacks all
the messages sent in the transaction.
public void testCommitTransactedSession()
rollback()
method on a
transacted Session
rollbacks all
the messages sent in the transaction.
public void testRollbackNonTransactedSession()
roolback()
method on a
non transacted Session
throws a
javax.jms.IllegalStateException
.
public void testCommitNonTransactedSession()
commit()
method on a
non transacted Session
throws a
javax.jms.IllegalStateException
.
public void testGetTransacted()
getTransacted()
method of a Session
returns true
if the session is transacted, false
else.
public void testAcknowledge()
acknowledge()
method of a received message
from a closed session must throw an IllegalStateException
.
public void testUseMessage()
acknowledge()
method.
public void testUsedClosedSession()
Session
which has been closed
throws a javax.jms.IllegalStateException
.
public void testCloseClosedSession()
public static junit.framework.Test suite()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |