| Package | Description |
|---|---|
| org.apache.sling.testing.mock.sling |
Mock implementation of selected Sling APIs.
|
| org.apache.sling.testing.mock.sling.context |
Sling context implementation for unit tests.
|
| org.apache.sling.testing.mock.sling.junit |
Rule for providing easy access to Sling context in JUnit tests.
|
| Modifier and Type | Field and Description |
|---|---|
static ResourceResolverType |
MockSling.DEFAULT_RESOURCERESOLVER_TYPE
Default resource resolver type is
RESOURCERESOLVER_MOCK. |
| Modifier and Type | Method and Description |
|---|---|
static ResourceResolverType |
ResourceResolverType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResourceResolverType[] |
ResourceResolverType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static org.apache.sling.api.resource.ResourceResolver |
MockSling.newResourceResolver(ResourceResolverType type)
Creates new sling resource resolver instance.
|
static org.apache.sling.api.resource.ResourceResolverFactory |
MockSling.newResourceResolverFactory(ResourceResolverType type)
Creates new sling resource resolver factory instance.
|
| Modifier and Type | Field and Description |
|---|---|
protected ResourceResolverType |
SlingContextImpl.resourceResolverType |
| Modifier and Type | Method and Description |
|---|---|
ResourceResolverType |
SlingContextImpl.resourceResolverType() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
SlingContextImpl.setResourceResolverType(ResourceResolverType resourceResolverType) |
| Constructor and Description |
|---|
SlingContext(ResourceResolverType resourceResolverType)
Initialize Sling context.
|
SlingContext(SlingContextCallback setUpCallback,
ResourceResolverType resourceResolverType)
Initialize Sling context.
|
SlingContext(SlingContextCallback setUpCallback,
SlingContextCallback tearDownCallback,
ResourceResolverType resourceResolverType)
Initialize Sling context.
|
Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.