org.ops4j.pax.exam.junit
Class JUnit4TestRunner
java.lang.Object
org.junit.runner.Runner
org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
org.junit.runners.BlockJUnit4ClassRunner
org.ops4j.pax.exam.junit.JUnit4TestRunner
- All Implemented Interfaces:
- org.junit.runner.Describable, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Sortable
public class JUnit4TestRunner
- extends org.junit.runners.BlockJUnit4ClassRunner
This is the default Test Runner using Exxam plumbing API.
Its also the blueprint for custom, much more specific runners.
This will make a single probe bundling in all @Tests in this class.
This uses the whole regression class as a single unit of tests with the following valid annotaions:
- @Configuration -> Configuration 1:N. Multiple configurations will result into multiple invokations of the same regression.
- @ProbeBuilder -> Customize the probe creation.
- @Test -> Single tests to be invoked. Note that in @Configuration you can specify the invokation strategy.
| Methods inherited from class org.junit.runners.BlockJUnit4ClassRunner |
computeTestMethods, createTest, describeChild, methodBlock, possiblyExpectingExceptions, rules, runChild, testName, validateConstructor, validateInstanceMethods, validateOnlyOneConstructor, validateTestMethods, validateZeroArgConstructor, withAfters, withBefores, withPotentialTimeout |
| Methods inherited from class org.junit.runners.ParentRunner |
childrenInvoker, classBlock, filter, getDescription, getName, getTestClass, setScheduler, sort, withAfterClasses, withBeforeClasses |
| Methods inherited from class org.junit.runner.Runner |
testCount |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JUnit4TestRunner
public JUnit4TestRunner(Class<?> klass)
throws Exception
- Throws:
Exception
run
public void run(org.junit.runner.notification.RunNotifier notifier)
- Overrides:
run in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
getChildren
protected List<org.junit.runners.model.FrameworkMethod> getChildren()
- We overwrite those with reactor content
- Overrides:
getChildren in class org.junit.runners.BlockJUnit4ClassRunner
collectInitializationErrors
protected void collectInitializationErrors(List<Throwable> errors)
- Overrides:
collectInitializationErrors in class org.junit.runners.BlockJUnit4ClassRunner
methodInvoker
protected org.junit.runners.model.Statement methodInvoker(org.junit.runners.model.FrameworkMethod method,
Object test)
- Overrides:
methodInvoker in class org.junit.runners.BlockJUnit4ClassRunner
validatePublicVoidNoArgMethods
protected void validatePublicVoidNoArgMethods(Class<? extends Annotation> annotation,
boolean isStatic,
List<Throwable> errors)
- Overrides:
validatePublicVoidNoArgMethods in class org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
Copyright © 2006-2011 OPS4J - Open Participation Software for Java. All Rights Reserved.