org.exolab.jmscts.core
Class JMSTestRunner

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.extensions.TestDecorator
              |
              +--junit.extensions.TestSetup
                    |
                    +--org.exolab.jmscts.core.AbstractTestRunner
                          |
                          +--org.exolab.jmscts.core.JMSTestRunner
All Implemented Interfaces:
junit.framework.Test

public class JMSTestRunner
extends AbstractTestRunner

This class enables test cases to be run against different JMS providers

The provider configuration file path is passed at construction. This contains a list of providers to run the tests against.

Parameters

Argument Description Required
config the provider configuration file path No
output the coverage report output directory No
filter the test filter configuration file path No
port the registry port No

Version:
$Revision: 1.7 $ $Date: 2004/01/31 13:44:24 $
Author:
Tim Anderson

Fields inherited from class org.exolab.jmscts.core.AbstractTestRunner
DEFAULT_PORT
 
Fields inherited from class junit.extensions.TestDecorator
fTest
 
Constructor Summary
JMSTestRunner(java.lang.Class test, java.lang.String[] args)
          Construct an instance using the class of the test case, and the list of arguments to configure the test suite
JMSTestRunner(junit.framework.Test test, java.lang.String[] args)
          Construct an instance with the test to run, and the list of arguments to configure the test suite
 
Method Summary
 void basicRun(junit.framework.TestResult result)
          Runs the test case against each provider
 TestContext createContext()
          Creates a test context
 void report(java.lang.String path)
          Generate a coverage report, writing it out to the specified path
protected  void setUp()
          Reads the provider configuration
 
Methods inherited from class org.exolab.jmscts.core.AbstractTestRunner
abort, getHome, getPort, getProvider, mergeSuites, registerServices, snapshot, startServices, stop, 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
 

Constructor Detail

JMSTestRunner

public JMSTestRunner(java.lang.Class test,
                     java.lang.String[] args)
Construct an instance using the class of the test case, and the list of arguments to configure the test suite
Parameters:
test - a class implementing the ConnectionFactoryTestCase and Test interfaces
args - command line arguments

JMSTestRunner

public JMSTestRunner(junit.framework.Test test,
                     java.lang.String[] args)
Construct an instance with the test to run, and the list of arguments to configure the test suite
Parameters:
test - the test to run
args - command line arguments
Method Detail

report

public void report(java.lang.String path)
            throws java.lang.Exception
Generate a coverage report, writing it out to the specified path
Overrides:
report in class AbstractTestRunner
Parameters:
path - the path to write the report
Throws:
java.lang.Exception - if the report can't be written, or the test isn't running

basicRun

public void basicRun(junit.framework.TestResult result)
Runs the test case against each provider
Overrides:
basicRun in class AbstractTestRunner
Parameters:
result - the instance to collect results in

createContext

public TestContext createContext()
Creates a test context
Overrides:
createContext in class AbstractTestRunner
Returns:
a new test context

setUp

protected void setUp()
              throws java.lang.Exception
Reads the provider configuration
Overrides:
setUp in class AbstractTestRunner
Throws:
java.lang.Exception - if the configuration cannot be initialised


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