| Package | Description |
|---|---|
| org.apache.sling.testing.mock.sling.junit |
Rule for providing easy access to Sling context in JUnit tests.
|
| Modifier and Type | Method and Description |
|---|---|
SlingContextBuilder |
SlingContextBuilder.afterSetUp(SlingContextCallback afterSetUpCallback) |
SlingContextBuilder |
SlingContextBuilder.afterTearDown(SlingContextCallback afterTearDownCallback) |
SlingContextBuilder |
SlingContextBuilder.beforeSetUp(SlingContextCallback beforeSetUpCallback) |
SlingContextBuilder |
SlingContextBuilder.beforeTearDown(SlingContextCallback beforeTearDownCallback) |
| Constructor and Description |
|---|
SlingContext(SlingContextCallback afterSetUpCallback)
Initialize Sling context with default resource resolver type:
MockSling.DEFAULT_RESOURCERESOLVER_TYPE. |
SlingContext(SlingContextCallback afterSetUpCallback,
ResourceResolverType resourceResolverType)
Initialize Sling context with resource resolver type.
|
SlingContext(SlingContextCallback afterSetUpCallback,
SlingContextCallback beforeTearDownCallback)
Initialize Sling context with default resource resolver type:
MockSling.DEFAULT_RESOURCERESOLVER_TYPE. |
SlingContext(SlingContextCallback afterSetUpCallback,
SlingContextCallback beforeTearDownCallback,
ResourceResolverType resourceResolverType)
Initialize Sling context with resource resolver type.
|
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.