public class

ParameterizedProbeRunner

extends BlockJUnit4ClassRunner
java.lang.Object
   ↳ org.junit.runner.Runner
     ↳ org.junit.runners.ParentRunner<T>
       ↳ org.junit.runners.BlockJUnit4ClassRunner
         ↳ org.ops4j.pax.exam.junit.impl.ParameterizedProbeRunner

Class Overview

JUnit runner for parameterized Pax Exam tests executed via an invoker. This runner is used for all operation modes except CDI. See Parameterized for more details on specifying parameter sets.

Summary

Public Constructors
ParameterizedProbeRunner(Class<?> klass)
Public Methods
void run(RunNotifier notifier)
We decorate the super method by reactor setup and teardown.
Protected Methods
Statement classBlock(RunNotifier notifier)
Override to avoid running BeforeClass and AfterClass by the driver.
Object createTest()
Creates an instance of the current test class.
List<FrameworkMethod> getChildren()
When using a probe invoker, we replace the test methods of this class by a potentially larger set of decorated test methods.
Statement methodBlock(FrameworkMethod method)
Override to avoid running Before, After and Rule methods by the driver.
synchronized Statement methodInvoker(FrameworkMethod method, Object test)
When using a probe invoker, we replace the super method and invoke the test method indirectly via the reactor.
void validateConstructor(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 ParameterizedProbeRunner (Class<?> klass)

Throws
InitializationError

Public Methods

public void run (RunNotifier notifier)

We decorate the super method by reactor setup and teardown. This method is called once per class. Note that the given reactor strategy decides whether or not the setup and teardown actually happens at this level.

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 when using a probe invoker.

protected Object createTest ()

Creates an instance of the current test class. When using a probe invoker, this simply delegates to super. Otherwise, we perform injection on the instance created by the super method.

In this case, an InjectorFactory is obtained via SPI lookup.

Throws
Exception

protected List<FrameworkMethod> getChildren ()

When using a probe invoker, we replace the test methods of this class by a potentially larger set of decorated test methods. Each original test method may give rise to multiple copies per test container or configuration.

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 when using a probe invoker.

protected synchronized Statement methodInvoker (FrameworkMethod method, Object test)

When using a probe invoker, we replace the super method and invoke the test method indirectly via the reactor.

protected void validateConstructor (List<Throwable> errors)