| java.lang.Object | |
| ↳ | org.ops4j.pax.exam.spi.reactors.ReactorManager |
Manages the exam system and reactor required by a test driver. This class is a singleton and keeps track of all tests in the current test suite and lets a reactor reuse the Exam system and the test probe, where applicable.
This class was factored out from the JUnit4TestRunner of Pax Exam 2.x and does not depend on JUnit.
TODO check if there are any concurrency issues. Some methods are synchronized, which is just inherited from the 2.1.0 implementation. The use cases are not quite clear.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Lazily creates a probe builder.
| |||||||||||
Returns the singleton ReactorManager instance.
| |||||||||||
Returns the number of configurations for the current reactor.
| |||||||||||
Performs field injection on the given test class instance.
| |||||||||||
Looks up a test method for a given address.
| |||||||||||
Prepares the unstaged reactor for the given test class instance.
| |||||||||||
Stages the reactor for the current class.
| |||||||||||
Stores the test method wrapper for a given test address
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Lazily creates a probe builder. The same probe builder will be reused for all test classes, unless the default builder is overridden in a given class.@return
| IOException | |
| ExamConfigurationException | |
| IOException |
Returns the singleton ReactorManager instance.
Returns the number of configurations for the current reactor.
Performs field injection on the given test class instance.
| test | test class instance |
|---|
Looks up a test method for a given address.
| address | test method address used by probe |
|---|
Prepares the unstaged reactor for the given test class instance. Any configurations from
Configuration methods of the class are added to the reactor.@return
| IllegalAccessException | |
| InstantiationException | |
| IOException | |
| InvocationTargetException | |
| IllegalArgumentException | |
| IOException | |
| IllegalAccessException | |
| InstantiationException | |
| InvocationTargetException |
| annotationHandler | the annotationHandler to set |
|---|
Stages the reactor for the current class.
| IOException | |
| InstantiationException | |
| IllegalAccessException | |
| IOException | |
| InstantiationException |
Stores the test method wrapper for a given test address
| address | test method address used by probe |
|---|---|
| testMethod | test method wrapper - the type is only known to the test driver |