|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.exolab.jmscts.core.TestInvoker
|
+--org.exolab.jmscts.core.MessageTestInvoker
|
+--org.exolab.jmscts.core.SendReceiveTestInvoker
Helper class to run a test case, for the given message type, delivery mode, messaging mode, and destination type.
Prior to running, it creates a new message of the specified type, and creates any destinations required by the test.
SendReceiveTestCase| Constructor Summary | |
SendReceiveTestInvoker(junit.framework.Test test,
junit.framework.TestResult result,
TestContext context,
TestFilter filter,
java.lang.Class messageType,
MessagingBehaviour behaviour)
Construct a new SendReceiveTestInvoker |
|
| Method Summary | |
protected javax.jms.Message |
create()
Create a message to test against, corresponding to the type passed at construction. |
protected void |
destroyDestinations(java.util.Map destinations)
Destroy any destinations set up for the test case |
TestContext |
getContext()
Returns the test context |
protected java.lang.Class |
getMessageType()
Returns the type of the message to test against |
junit.framework.Test |
getTest()
Returns the test |
void |
protect()
Run the test |
protected void |
setUp(JMSTest test,
TestContext context)
Setup the test |
protected void |
tearDown(JMSTest test,
TestContext context)
Tear down the test |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SendReceiveTestInvoker(junit.framework.Test test,
junit.framework.TestResult result,
TestContext context,
TestFilter filter,
java.lang.Class messageType,
MessagingBehaviour behaviour)
SendReceiveTestInvokertest - the test to run. Must be an instance of
SendReceiveTestCaseresult - the result of the testcontext - the test contextfilter - the test filter. May be nullmessageType - the message type to run the test againstbehaviour - the messaging behaviour| Method Detail |
protected void setUp(JMSTest test,
TestContext context)
throws java.lang.Exception
setUp in class org.exolab.jmscts.core.MessageTestInvokertest - the testcontext - the test contextjava.lang.Exception - for any error
protected void tearDown(JMSTest test,
TestContext context)
throws java.lang.Exception
tearDown in class org.exolab.jmscts.core.TestInvokertest - the testcontext - the test contextjava.lang.Exception - for any error
protected void destroyDestinations(java.util.Map destinations)
throws java.lang.Exception
destinations - a map of Destination instances, keyed
on namejava.lang.Exception - for any error
protected javax.jms.Message create()
throws java.lang.Exception
MessagePopulator, this will be used to populate the messagejava.lang.Exception - for any errorprotected java.lang.Class getMessageType()
public void protect()
throws java.lang.Exception
protect in interface junit.framework.Protectablejava.lang.Exception - for any errorpublic junit.framework.Test getTest()
public TestContext getContext()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||