| 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.loader |
Helpers for importing test content into the mocked repositories / resource hierarchies.
|
| Modifier and Type | Field and Description |
|---|---|
static @NotNull 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 @NotNull org.apache.sling.api.resource.ResourceResolver |
MockSling.newResourceResolver(@NotNull ResourceResolverType type,
@NotNull org.osgi.framework.BundleContext bundleContext)
Creates new sling resource resolver instance.
|
static @NotNull org.apache.sling.api.resource.ResourceResolverFactory |
MockSling.newResourceResolverFactory(@NotNull ResourceResolverType type,
@NotNull 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 |
|---|---|
@NotNull ResourceResolverType |
SlingContextImpl.resourceResolverType() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
SlingContextImpl.setResourceResolverType(@Nullable ResourceResolverType resourceResolverType) |
| Constructor and Description |
|---|
ContentLoader(@NotNull org.apache.sling.api.resource.ResourceResolver resourceResolver,
@Nullable org.osgi.framework.BundleContext bundleContext,
boolean autoCommit,
@Nullable ResourceResolverType resourceResolverType) |
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.