| java.lang.Object |
| ↳ |
org.junit.runner.Runner |
| |
↳ |
org.junit.runners.ParentRunner<T> |
| |
|
↳ |
org.junit.runners.BlockJUnit4ClassRunner |
| |
|
|
↳ |
org.ops4j.pax.exam.junit.JUnit4TestRunner |
Class Overview
This is the default Test Runner using the Exam 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 annotations:
- @Configuration -> Configuration 1:N. Multiple configurations will result in multiple invocations of the same regression.
- @ProbeBuilder -> Customize the probe creation.
- @Test -> Single tests to be invoked. Note that in @Configuration you can specify the invocation strategy.
Summary
| Public Methods |
|
void
|
run(RunNotifier notifier)
|
| Protected Methods |
|
Statement
|
classBlock(RunNotifier notifier)
Override to avoid running BeforeClass and AfterClass by the driver.
|
|
void
|
collectInitializationErrors(List<Throwable> errors)
|
|
List<FrameworkMethod>
|
getChildren()
We overwrite those with reactor content
|
|
Statement
|
methodBlock(FrameworkMethod method)
Override to avoid running Before, After and Rule methods by the driver.
|
|
synchronized
Statement
|
methodInvoker(FrameworkMethod method, Object test)
|
|
void
|
validatePublicVoidNoArgMethods(Class<? extends Annotation> annotation, boolean isStatic, List<Throwable> errors)
|
|
[Expand]
Inherited Methods |
From class
org.junit.runners.BlockJUnit4ClassRunner
|
void
|
collectInitializationErrors(List<Throwable> arg0)
|
|
List<FrameworkMethod>
|
computeTestMethods()
|
|
Object
|
createTest()
|
|
Description
|
describeChild(Object arg0)
|
|
Description
|
describeChild(FrameworkMethod arg0)
|
|
List<FrameworkMethod>
|
getChildren()
|
|
List<TestRule>
|
getTestRules(Object arg0)
|
|
Statement
|
methodBlock(FrameworkMethod arg0)
|
|
Statement
|
methodInvoker(FrameworkMethod arg0, Object arg1)
|
|
Statement
|
possiblyExpectingExceptions(FrameworkMethod arg0, Object arg1, Statement arg2)
|
|
List<MethodRule>
|
rules(Object arg0)
|
|
void
|
runChild(Object arg0, RunNotifier arg1)
|
|
void
|
runChild(FrameworkMethod arg0, RunNotifier arg1)
|
|
String
|
testName(FrameworkMethod arg0)
|
|
void
|
validateConstructor(List<Throwable> arg0)
|
|
void
|
validateInstanceMethods(List<Throwable> arg0)
|
|
void
|
validateNoNonStaticInnerClass(List<Throwable> arg0)
|
|
void
|
validateOnlyOneConstructor(List<Throwable> arg0)
|
|
void
|
validateTestMethods(List<Throwable> arg0)
|
|
void
|
validateZeroArgConstructor(List<Throwable> arg0)
|
|
Statement
|
withAfters(FrameworkMethod arg0, Object arg1, Statement arg2)
|
|
Statement
|
withBefores(FrameworkMethod arg0, Object arg1, Statement arg2)
|
|
Statement
|
withPotentialTimeout(FrameworkMethod arg0, Object arg1, Statement arg2)
|
|
From class
org.junit.runners.ParentRunner
|
Statement
|
childrenInvoker(RunNotifier arg0)
|
|
Statement
|
classBlock(RunNotifier arg0)
|
|
List<TestRule>
|
classRules()
|
|
void
|
collectInitializationErrors(List<Throwable> arg0)
|
|
abstract
Description
|
describeChild(T arg0)
|
|
void
|
filter(Filter arg0)
|
|
abstract
List<T>
|
getChildren()
|
|
Description
|
getDescription()
|
|
String
|
getName()
|
|
Annotation[]
|
getRunnerAnnotations()
|
|
final
TestClass
|
getTestClass()
|
|
void
|
run(RunNotifier arg0)
|
|
abstract
void
|
runChild(T arg0, RunNotifier arg1)
|
|
final
void
|
runLeaf(Statement arg0, Description arg1, RunNotifier arg2)
|
|
void
|
setScheduler(RunnerScheduler arg0)
|
|
void
|
sort(Sorter arg0)
|
|
void
|
validatePublicVoidNoArgMethods(Class<? extends Annotation> arg0, boolean arg1, List<Throwable> arg2)
|
|
Statement
|
withAfterClasses(Statement arg0)
|
|
Statement
|
withBeforeClasses(Statement arg0)
|
|
From class
org.junit.runner.Runner
|
abstract
Description
|
getDescription()
|
|
abstract
void
|
run(RunNotifier arg0)
|
|
int
|
testCount()
|
|
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0)
|
|
final
void
|
wait(long arg0, int arg1)
|
|
From interface
org.junit.runner.Describable
|
abstract
Description
|
getDescription()
|
|
From interface
org.junit.runner.manipulation.Filterable
|
abstract
void
|
filter(Filter arg0)
|
|
From interface
org.junit.runner.manipulation.Sortable
|
abstract
void
|
sort(Sorter arg0)
|
|
Public Constructors
public
JUnit4TestRunner
(Class<?> klass)
Public Methods
public
void
run
(RunNotifier notifier)
Protected Methods
protected
Statement
classBlock
(RunNotifier notifier)
Override to avoid running BeforeClass and AfterClass by the driver.
They shall only be run by the container.
protected
void
collectInitializationErrors
(List<Throwable> errors)
protected
List<FrameworkMethod>
getChildren
()
We overwrite those with reactor content
protected
Statement
methodBlock
(FrameworkMethod method)
Override to avoid running Before, After and Rule methods by the driver.
They shall only be run by the container.
protected
synchronized
Statement
methodInvoker
(FrameworkMethod method, Object test)
protected
void
validatePublicVoidNoArgMethods
(Class<? extends Annotation> annotation, boolean isStatic, List<Throwable> errors)