org.exolab.jmscts.core
Class SendReceiveTestRunner

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.extensions.TestDecorator
              |
              +--junit.extensions.TestSetup
                    |
                    +--org.exolab.jmscts.core.TestRunner
                          |
                          +--org.exolab.jmscts.core.AbstractMessageTestRunner
                                |
                                +--org.exolab.jmscts.core.SendReceiveTestRunner
All Implemented Interfaces:
ConnectionFactoryTestCase, ConnectionTestCase, JMSTest, SessionTestCase, junit.framework.Test

public class SendReceiveTestRunner
extends AbstractMessageTestRunner

This class enables generic message test cases to be run for each JMS message type using different delivery modes, synchronous/asynchronous messaging, and administered and non-administered destinations.

Test cases must implement the SendReceiveTestCase interface.

Version:
$Revision: 1.6 $ $Date: 2004/01/31 13:44:24 $
Author:
Tim Anderson
See Also:
SendReceiveTestCase

Fields inherited from class junit.extensions.TestDecorator
fTest
 
Constructor Summary
SendReceiveTestRunner(SendReceiveTestCase 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
protected  void runTest(junit.framework.Test test, junit.framework.TestResult result, java.lang.Class messageType)
          Runs a test case for a particular message type, against each of the supported delivery types.
protected  void runTest(junit.framework.Test test, junit.framework.TestResult result, java.lang.Class messageType, MessagingBehaviour behaviour)
          Runs a test case for a particular message type, against a particular messaging behaviour
 
Methods inherited from class org.exolab.jmscts.core.AbstractMessageTestRunner
getAckTypes, getConnectionFactoryTypes, runTest, setClientID, startConnection
 
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

SendReceiveTestRunner

public SendReceiveTestRunner(SendReceiveTestCase test)
Construct an instance with the test case to run.
Parameters:
test - the test case to run.
Method Detail

countTestCases

public int countTestCases()
Counts the number of test cases that will be run by this test
Overrides:
countTestCases in class AbstractMessageTestRunner
Returns:
the number of test cases that will be run

runTest

protected void runTest(junit.framework.Test test,
                       junit.framework.TestResult result,
                       java.lang.Class messageType)
Runs a test case for a particular message type, against each of the supported delivery types.
Overrides:
runTest in class AbstractMessageTestRunner
Parameters:
test - the test case
result - the instance to collect test results in
messageType - the message type

runTest

protected void runTest(junit.framework.Test test,
                       junit.framework.TestResult result,
                       java.lang.Class messageType,
                       MessagingBehaviour behaviour)
Runs a test case for a particular message type, against a particular messaging behaviour
Parameters:
test - the test case
result - the instance to collect test results in
messageType - the message type
behaviour - the messaging behaviour


Copyright © 2001-2004 JMS CTS Team. All Rights Reserved.