public abstract class AbstractComponentTest extends Object
getApplicationOptions()
methods and the test methods.
It is important to remember that the config()
method and all the methods it calls,
i.e., getContainerOptions()
and getApplicationOptions()
, are called inside the
test runner process and are only used to configure the test container. All the other methods in
this class and its sub-classes will be run inside the test container, which is a separate
process.
ApplicationOptions
,
ContainerOptions
Modifier and Type | Field and Description |
---|---|
TestFailureLogger |
testFailureLogger |
Constructor and Description |
---|
AbstractComponentTest() |
Modifier and Type | Method and Description |
---|---|
org.ops4j.pax.exam.Option[] |
config()
Configuration method called during Pax Exam configuration.
|
protected abstract ApplicationOptions |
getApplicationOptions()
Gets the object to use to configure the component or application inside the container.
|
protected ContainerOptions |
getContainerOptions()
Gets the object to use to configure the container.
|
static PortFinder |
getPortFinder() |
public TestFailureLogger testFailureLogger
public org.ops4j.pax.exam.Option[] config()
Option
s returned will be
used by Pax Exam to configure the container that will be spawn and used to execute the tests.Option
that will be used to configure the Pax Exam test containerpublic static PortFinder getPortFinder()
protected ContainerOptions getContainerOptions()
Option
s. Default
implementation returns KarafOptions
.protected abstract ApplicationOptions getApplicationOptions()
Option
sThis work is licensed under a Creative Commons Attribution 4.0 International License.