|
||||||||||
| 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.AbstractTestRunner
|
+--org.exolab.jmscts.core.JMSTestRunner
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.
| 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 |
| 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 |
public JMSTestRunner(java.lang.Class test,
java.lang.String[] args)
test - a class implementing the ConnectionFactoryTestCase
and Test interfacesargs - command line arguments
public JMSTestRunner(junit.framework.Test test,
java.lang.String[] args)
test - the test to runargs - command line arguments| Method Detail |
public void report(java.lang.String path)
throws java.lang.Exception
report in class AbstractTestRunnerpath - the path to write the reportjava.lang.Exception - if the report can't be written, or the test
isn't runningpublic void basicRun(junit.framework.TestResult result)
basicRun in class AbstractTestRunnerresult - the instance to collect results inpublic TestContext createContext()
createContext in class AbstractTestRunner
protected void setUp()
throws java.lang.Exception
setUp in class AbstractTestRunnerjava.lang.Exception - if the configuration cannot be initialised
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||