public class

JUnit4TestRunner

extends BlockJUnit4ClassRunner
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 Constructors
JUnit4TestRunner(Class<?> klass)
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
From class org.junit.runners.ParentRunner
From class org.junit.runner.Runner
From class java.lang.Object
From interface org.junit.runner.Describable
From interface org.junit.runner.manipulation.Filterable
From interface org.junit.runner.manipulation.Sortable

Public Constructors

public JUnit4TestRunner (Class<?> klass)

Throws
Exception

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)