| org.ops4j.pax.exam.TestContainer |
Management of an OSGi framework that can be used as a integration test container. Each container is also a test target. When constucting TestContainers, it is good practice to not put the parsing part (from Option[]) into the implementation. Instead, make the native container construction really simple and tied to the underlying container.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Installs a probe from the given stream.
| |||||||||||
Starts the test container.
| |||||||||||
Stops the regression container.
| |||||||||||
Uninstalls the current probe.
| |||||||||||
| location | update location of the installed stream. (used on bundle.update()) |
|---|---|
| stream | stream the content |
| stream | stream the content |
|---|
Installs a probe from the given stream. A test container supports at most one probe at a
time. The installed probe (if any) can be uninstalled using uninstallProbe().
| stream | probe bundle |
|---|
Starts the test container.
| TimeoutException | - if timeout occured and the test container cannot be started |
|---|
Stops the regression container. Implementations should take care of calling cleanup() internally, too.
| TimeoutException | - if timeout occured and the regression container cannot be stopped |
|---|
Uninstalls the current probe. The container keeps running and can be reused with a new probe.
| TestContainerException | if no probe installed. |
|---|