Class KarafOptions
java.lang.Object
org.codice.ddf.test.common.configurators.KarafOptions
- All Implemented Interfaces:
Supplier<org.ops4j.pax.exam.Option>,ContainerOptions
Provides the configuration
Options required to run Pax Exam and Karaf. Application
specific configurations such as bundles and features should be configured using an implementation
of ApplicationOptions.
The following system properties can be used to customize the Karaf's runtime behavior:
keepRuntimeFolder: keeps the runtime folder after the tests completeisDebugEnabled: enables the remote debug agent and port (5005)maven.repo.local: sets the maven repository where local artifacts will be retrieved
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.ops4j.pax.exam.Optionget()Gets the basic Pax Exam configurationOptions for the container.static org.ops4j.pax.exam.OptionPax Exam 4.14.0 starts both the JUnit 4.13.2 and Hamcrest-all 1.3 ServiceMix bundles by default, but they both export some Hamcrest packages.
-
Constructor Details
-
KarafOptions
Constructor.- Parameters:
portFinder- instance of thePortFinderto use to assign unique ports to the new Pax Exam container
-
-
Method Details
-
get
public org.ops4j.pax.exam.Option get()Description copied from interface:ContainerOptionsGets the basic Pax Exam configurationOptions for the container. Implementers should use Pax Exam'sCoreOptions.composite(Option...)to combine multiple options into one if needed.- Specified by:
getin interfaceContainerOptions- Specified by:
getin interfaceSupplier<org.ops4j.pax.exam.Option>- Returns:
- Pax Exam configuration
Options
-
overridePaxExamJUnitHamcrest
public static org.ops4j.pax.exam.Option overridePaxExamJUnitHamcrest()Pax Exam 4.14.0 starts both the JUnit 4.13.2 and Hamcrest-all 1.3 ServiceMix bundles by default, but they both export some Hamcrest packages. That causes problems when the test probe tries to resolve Hamcrest classes. To fix this, we override Pax Exam's bundles and substitute a wrapped JUnit (which does not contain Hamcrest) for the ServiceMix version.
-