public class KarafOptions extends Object implements ContainerOptions
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 complete
isDebugEnabled: enables the remote debug agent and port (5005)
maven.repo.local: sets the maven repository where local artifacts will be retrieved
ApplicationOptions| Constructor and Description |
|---|
KarafOptions(PortFinder portFinder)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.ops4j.pax.exam.Option |
get()
Gets the basic Pax Exam configuration
Options for the container. |
public KarafOptions(PortFinder portFinder)
portFinder - instance of the PortFinder to use to assign unique ports to the new
Pax Exam containerpublic org.ops4j.pax.exam.Option get()
ContainerOptionsOptions for the container. Implementers should
use Pax Exam's CoreOptions.composite(Option...) to combine multiple
options into one if needed.get in interface Supplier<org.ops4j.pax.exam.Option>get in interface ContainerOptionsOptionsThis work is licensed under a Creative Commons Attribution 4.0 International License.