org.exolab.jmscts.core
Class ConnectionTestRunner

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

public class ConnectionTestRunner
extends TestRunner
implements ConnectionFactoryTestCase

This class enables generic connection test cases to be run for each JMS connection type.

Test cases must implement the ConnectionTestCase interface.

Version:
$Revision: 1.4 $ $Date: 2004/01/31 13:44:24 $
Author:
Tim Anderson
See Also:
ConnectionTestCase, ConnectionFactoryTestCase, ProviderTestRunner

Fields inherited from class junit.extensions.TestDecorator
fTest
 
Constructor Summary
ConnectionTestRunner(ConnectionTestCase test)
          Construct an instance with the test case to run
 
Method Summary
 ConnectionFactoryTypes getConnectionFactoryTypes()
          Return the connection factory types to run the test cases against
protected  void runTest(junit.framework.Test test, junit.framework.TestResult result)
          Runs a test case for the given connection.
 
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
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

ConnectionTestRunner

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

getConnectionFactoryTypes

public ConnectionFactoryTypes getConnectionFactoryTypes()
Return the connection factory types to run the test cases against
Specified by:
getConnectionFactoryTypes in interface ConnectionFactoryTestCase
Returns:
the connection factory types to run the test cases against

runTest

protected void runTest(junit.framework.Test test,
                       junit.framework.TestResult result)
Runs a test case for the given connection.
Overrides:
runTest in class TestRunner
Parameters:
test - the test case
result - the instance to collect test results in


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