|
||||||||||
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.StopStartTest
This class tests the behaviour of Connection.stop
and
Connection.start
Constructor Summary | |
StopStartTest(java.lang.String name)
Construct a new StopStartTest |
Method Summary | |
boolean |
share()
Returns if this test can share resources with other test cases. |
boolean |
startConnection()
Returns if the connection should be started prior to running the test. |
static junit.framework.Test |
suite()
Sets up the test suite |
void |
testStartForStartedConnection()
Verifies that invoking Connection.start() for a started
connection has no effect. |
void |
testStopForStoppedConnection()
Verifies that invoking Connection.stop() for a stopped
connection has no effect. |
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 |
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 |
Methods inherited from interface junit.framework.Test |
countTestCases, run |
Constructor Detail |
public StopStartTest(java.lang.String name)
StopStartTest
name
- the name of test caseMethod Detail |
public static junit.framework.Test suite()
JMSTestRunner
public boolean share()
false
, to
ensure that a new connection is created for each test.share
in class JMSTestCase
false
public boolean startConnection()
false
to avoid
conflicts with test casesstartConnection
in class AbstractConnectionTestCase
false
public void testStopForStoppedConnection() throws java.lang.Exception
Connection.stop()
for a stopped
connection has no effect.java.lang.Exception
- for any errorpublic void testStartForStartedConnection() throws java.lang.Exception
Connection.start()
for a started
connection has no effect.java.lang.Exception
- for any error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |