Documentation

Reference Documentation

The following chapters will guide you through usage of Pax Sham as well through the internals of Pax URL if you consider to maintain, enhance or develop on top of Pax Sham.
This documentation is a work in progress from OPS4J community and your contribution is always welcome.

Add Maven depenency

To develop using Pax Sham add the following dependency:

<dependency>
    <groupId>org.ops4j.pax.sham</groupId>
    <artifactId>pax-sham-core</artifactId>
    <version>1.0.0-SNAPSHOT</version>
</dependency>

Using Mocks

The unit tests from Pax Sham are self explanatory and will give you some hints on how you can use Pax Sham.

Stubbing

You can use Mockito to stub expectations and verify behavior. Take a look at Pax Sham unit tests for some examples.