|
||||||||||
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.TestRunner | +--org.exolab.jmscts.core.ProviderTestRunner
This class enables generic connection factory test cases to be run for each JMS provider.
Test cases must implement the ConnectionFactoryTestCase
interface.
ConnectionTestCase
,
JMSTestRunner
,
Provider
Fields inherited from class junit.extensions.TestDecorator |
fTest |
Constructor Summary | |
ProviderTestRunner(junit.framework.Test test)
Construct an instance with the test case to run. |
Method Summary | |
protected void |
runTest(junit.framework.Test test,
junit.framework.TestResult result)
Runs a test case against each supported connection type |
void |
setProvider(ProviderLoader provider)
Set the provider loader This must be invoked prior to running the test case. |
protected void |
setUp()
Initialises the provider |
protected void |
tearDown()
Cleans up after the test case has been run |
Methods inherited from class org.exolab.jmscts.core.TestRunner |
basicRun, checkImplements, getChildContext, getContext, getFilter, getTests, setChildContext, setContext, setFilter, share |
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 |
Methods inherited from interface junit.framework.Test |
countTestCases, run |
Constructor Detail |
public ProviderTestRunner(junit.framework.Test test)
test
- the test case to run. The test must implement the
ConnectionFactoryTestCase
interface, unless it is a TestSuite,
where each contained test must implement the
ConnectionFactoryTestCase
interface.Method Detail |
public void setProvider(ProviderLoader provider)
provider
- the provider loaderprotected void setUp() throws java.lang.Exception
setUp
in class junit.extensions.TestSetup
java.lang.Exception
- if the provider proxy cannot be initialised.protected void tearDown() throws java.lang.Exception
tearDown
in class TestRunner
java.lang.Exception
- if the provider can't be cleaned upprotected void runTest(junit.framework.Test test, junit.framework.TestResult result)
runTest
in class TestRunner
test
- the test caseresult
- the instance to collect test results in
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |