public class MyContainerTestRunner
extends org.junit.runners.BlockJUnit4ClassRunner
Runner for integration tests in MyContainer.
The runner offer transparencies over standard usese of MyContainer API in the JUnit framework, including:
Test,
Before, BeforeClass, After, and AfterClass are guaranteed to
occurred within a running container
Gar which is annotated with Deployment
MyContainer which is annotated with Inject
T into
any static field of type T which is annotated with Named and qualified with the name of the port-type
EndpointReferenceType which is annotated with Named and qualified with the name of
the corresponding port-type.
Usage may be illustrated with the following example:
| Constructor and Description |
|---|
MyContainerTestRunner(Class<?> klass)
Creates an instance for a test class.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
runChild(org.junit.runners.model.FrameworkMethod method,
org.junit.runner.notification.RunNotifier notifier) |
protected org.junit.runners.model.Statement |
withAfterClasses(org.junit.runners.model.Statement statement) |
protected org.junit.runners.model.Statement |
withBeforeClasses(org.junit.runners.model.Statement statement) |
collectInitializationErrors, computeTestMethods, createTest, describeChild, getChildren, methodBlock, methodInvoker, possiblyExpectingExceptions, testName, validateConstructor, validateInstanceMethods, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeoutpublic MyContainerTestRunner(Class<?> klass) throws org.junit.runners.model.InitializationError
klass - the test classorg.junit.runners.model.InitializationError - if the test class is not well formedprotected void runChild(org.junit.runners.model.FrameworkMethod method,
org.junit.runner.notification.RunNotifier notifier)
runChild in class org.junit.runners.BlockJUnit4ClassRunnerprotected org.junit.runners.model.Statement withBeforeClasses(org.junit.runners.model.Statement statement)
withBeforeClasses in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>protected org.junit.runners.model.Statement withAfterClasses(org.junit.runners.model.Statement statement)
withAfterClasses in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>Copyright © 2012. All Rights Reserved.