|
||||||||||
| 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.AbstractMessageTestRunner
This class enables generic message test cases to be run for each JMS message type.
MessageTestCase| Fields inherited from class junit.extensions.TestDecorator |
fTest |
| Constructor Summary | |
AbstractMessageTestRunner(MessageTestCase test)
Construct an instance with the test case to run. |
|
| Method Summary | |
int |
countTestCases()
Counts the number of test cases that will be run by this test |
AckTypes |
getAckTypes()
Returns the message acknowledgement types of the sessions to test against. |
ConnectionFactoryTypes |
getConnectionFactoryTypes()
Get the connection factory types to test against |
protected void |
runTest(junit.framework.Test test,
junit.framework.TestResult result)
Run a test against each of the message types it supports |
protected abstract void |
runTest(junit.framework.Test test,
junit.framework.TestResult result,
java.lang.Class messageType)
Runs a test case for the given message type. |
boolean |
setClientID()
Returns true if the client identifier should be set on the connection. |
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, setUp |
| Methods inherited from class junit.extensions.TestDecorator |
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 |
run |
| Constructor Detail |
public AbstractMessageTestRunner(MessageTestCase 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 ConnectionTestCasepublic AckTypes getAckTypes()
getAckTypes in interface SessionTestCasepublic int countTestCases()
countTestCases in interface junit.framework.TestcountTestCases in class junit.extensions.TestDecorator
protected void runTest(junit.framework.Test test,
junit.framework.TestResult result)
runTest in class TestRunnertest - the test caseresult - the instance to collect test results in
protected abstract void runTest(junit.framework.Test test,
junit.framework.TestResult result,
java.lang.Class messageType)
test - the test caseresult - the instance to collect test results inmessageType - the message type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||