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)
Deprecated.
Please use
MockSling.newResourceResolver(ResourceResolverType, BundleContext)
and shutdown the bundle context after usage. |
static org.apache.sling.api.resource.ResourceResolver |
MockSling.newResourceResolver(ResourceResolverType type,
org.osgi.framework.BundleContext bundleContext)
Creates new sling resource resolver instance.
|
static org.apache.sling.api.resource.ResourceResolverFactory |
MockSling.newResourceResolverFactory(ResourceResolverType type)
Deprecated.
Please use
MockSling.newResourceResolverFactory(ResourceResolverType, BundleContext)
and shutdown the bundle context after usage. |
static org.apache.sling.api.resource.ResourceResolverFactory |
MockSling.newResourceResolverFactory(ResourceResolverType type,
org.osgi.framework.BundleContext bundleContext)
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) |
Modifier and Type | Method and Description |
---|---|
SlingContextBuilder |
SlingContextBuilder.resourceResolverType(ResourceResolverType resourceResolverType) |
Constructor and Description |
---|
SlingContext(org.apache.sling.testing.mock.osgi.context.ContextCallback<T> afterSetUpCallback,
ResourceResolverType resourceResolverType)
Initialize Sling context with resource resolver type.
|
SlingContext(org.apache.sling.testing.mock.osgi.context.ContextCallback<U> afterSetUpCallback,
org.apache.sling.testing.mock.osgi.context.ContextCallback<V> beforeTearDownCallback,
ResourceResolverType resourceResolverType)
Initialize Sling context with resource resolver type.
|
SlingContext(ResourceResolverType resourceResolverType)
Initialize Sling context with resource resolver type.
|
SlingContextBuilder(ResourceResolverType resourceResolverType)
Create builder with given resource resolver type.
|
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.