|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--junit.framework.Assert | +--junit.framework.TestCase | +--org.exolab.jmscts.core.JMSTestCase | +--org.exolab.jmscts.core.AbstractConnectionFactoryTestCase | +--org.exolab.jmscts.core.AbstractConnectionTestCase | +--org.exolab.jmscts.test.connection.ClientIdentifierTest
This class verifies that the client identifier can be set, but only on creation of a connection.
AbstractConnectionTestCase
,
ConnectionTestRunner
Constructor Summary | |
ClientIdentifierTest(java.lang.String name)
Create a new ClientIdentifierTest |
Method Summary | |
boolean |
startConnection()
Returns true if the connection should be started prior to running the test. |
static junit.framework.Test |
suite()
Sets up the test suite |
void |
testDuplicateClientID()
Verifies that two connections may not have the same client identifier |
void |
testSetAfterClose()
Verifies that the client identifier cannot be set on a closed connection |
void |
testSetAfterCreateSession()
Verifies that the client identifier cannot be set after a session has been created |
void |
testSetAfterListenerRegistration()
Verifies that the client identifier cannot be set after an exception listener has been registered |
void |
testSetAfterStart()
Verifies that the client identifier cannot be set after the connection has been started |
void |
testSetAfterStop()
Verifies that the client identifier cannot be set after the connection has stopped |
void |
testSetOnCreation()
Verifies that the client identifier can be set on a connection, just after it is created, but not subsequently. |
Methods inherited from class org.exolab.jmscts.core.AbstractConnectionTestCase |
setClientID |
Methods inherited from class org.exolab.jmscts.core.AbstractConnectionFactoryTestCase |
getConnectionFactoryTypes |
Methods inherited from class org.exolab.jmscts.core.JMSTestCase |
getContext, getRequirements, setContext, share |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.exolab.jmscts.core.ConnectionFactoryTestCase |
getConnectionFactoryTypes |
Methods inherited from interface org.exolab.jmscts.core.JMSTest |
getContext, setContext, share |
Methods inherited from interface junit.framework.Test |
countTestCases, run |
Constructor Detail |
public ClientIdentifierTest(java.lang.String name)
ClientIdentifierTest
name
- the name of test caseMethod Detail |
public static junit.framework.Test suite()
JMSTestRunner
public void testSetOnCreation() throws java.lang.Exception
java.lang.Exception
- for any errorpublic void testDuplicateClientID() throws java.lang.Exception
java.lang.Exception
- for any errorpublic void testSetAfterClose() throws java.lang.Exception
java.lang.Exception
- for any errorpublic void testSetAfterListenerRegistration() throws java.lang.Exception
java.lang.Exception
- for any errorpublic void testSetAfterStart() throws java.lang.Exception
java.lang.Exception
- for any errorpublic void testSetAfterStop() throws java.lang.Exception
java.lang.Exception
- for any errorpublic void testSetAfterCreateSession() throws java.lang.Exception
java.lang.Exception
- for any errorpublic boolean startConnection()
testSetOnCreation()
startConnection
in class AbstractConnectionTestCase
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |