|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--junit.framework.Assert
|
+--junit.extensions.TestDecorator
|
+--junit.extensions.TestSetup
|
+--org.exolab.jmscts.core.TestRunner
|
+--org.exolab.jmscts.core.SessionTestRunner
This class enables generic session test cases to be run for each JMS session type.
Test cases must implement the SessionTestCase interface.
SessionTestCase,
ConnectionTestCase,
ConnectionTestRunner| Fields inherited from class junit.extensions.TestDecorator |
fTest |
| Constructor Summary | |
SessionTestRunner(SessionTestCase test)
Construct an instance with the test case to run. |
|
| Method Summary | |
ConnectionFactoryTypes |
getConnectionFactoryTypes()
Get the connection factory types to test against |
protected void |
runTest(junit.framework.Test test,
junit.framework.TestResult result)
Runs the test case against sessions for each of the acknowledgement types specified by the test. |
boolean |
setClientID()
Returns true if the client identifier should be set on the connection. |
protected void |
setUp()
Creates the session, prior to running the test case |
boolean |
startConnection()
Returns true if the connection should be started prior to running the test. |
| Methods inherited from class org.exolab.jmscts.core.TestRunner |
basicRun, checkImplements, getChildContext, getContext, getFilter, getTests, setChildContext, setContext, setFilter, share, tearDown |
| Methods inherited from class junit.extensions.TestSetup |
run |
| Methods inherited from class junit.extensions.TestDecorator |
countTestCases, getTest, 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.JMSTest |
getContext, setContext, share |
| Methods inherited from interface junit.framework.Test |
countTestCases, run |
| Constructor Detail |
public SessionTestRunner(SessionTestCase test)
test - the test case to run| Method Detail |
public ConnectionFactoryTypes getConnectionFactoryTypes()
getConnectionFactoryTypes in interface ConnectionFactoryTestCasepublic boolean startConnection()
startConnection in interface ConnectionTestCasepublic boolean setClientID()
setClientID in interface ConnectionTestCase
protected void runTest(junit.framework.Test test,
junit.framework.TestResult result)
runTest in class TestRunnertest - the test case to runresult - the instance to collect results in
protected void setUp()
throws java.lang.Exception
setUp in class junit.extensions.TestSetupjava.lang.Exception - if the session cannot be created, or the test case
does not implement the SessionTestCase interface
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||