public final class SlingContext extends SlingContextImpl implements org.junit.rules.TestRule
contentBuilder, contentLoader, modelAdapterFactory, request, resourceResolver, resourceResolverFactory, resourceResolverType, response, slingScriptHelper| Constructor and Description |
|---|
SlingContext()
Initialize Sling context with default resource resolver type:
MockSling.DEFAULT_RESOURCERESOLVER_TYPE. |
SlingContext(ResourceResolverType resourceResolverType)
Initialize Sling context with resource resolver type.
|
SlingContext(SlingContextCallback setUpCallback)
Initialize Sling context with default resource resolver type:
MockSling.DEFAULT_RESOURCERESOLVER_TYPE. |
SlingContext(SlingContextCallback setUpCallback,
ResourceResolverType resourceResolverType)
Initialize Sling context with resource resolver type.
|
SlingContext(SlingContextCallback setUpCallback,
SlingContextCallback tearDownCallback)
Initialize Sling context with default resource resolver type:
MockSling.DEFAULT_RESOURCERESOLVER_TYPE. |
SlingContext(SlingContextCallback setUpCallback,
SlingContextCallback tearDownCallback,
ResourceResolverType resourceResolverType)
Initialize Sling context with resource resolver type.
|
| Modifier and Type | Method and Description |
|---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description) |
addModelsForPackage, create, currentResource, currentResource, currentResource, load, newResourceResolverFactory, registerDefaultServices, request, requestPathInfo, resourceResolver, resourceResolverType, response, runMode, setResourceResolverType, setUp, slingScriptHelper, tearDownpublic SlingContext()
MockSling.DEFAULT_RESOURCERESOLVER_TYPE.public SlingContext(ResourceResolverType resourceResolverType)
resourceResolverType - Resource resolver type.public SlingContext(SlingContextCallback setUpCallback)
MockSling.DEFAULT_RESOURCERESOLVER_TYPE.setUpCallback - Allows the application to register an own callback
function that is called after the built-in setup rules are
executed.public SlingContext(SlingContextCallback setUpCallback, ResourceResolverType resourceResolverType)
setUpCallback - Allows the application to register an own callback
function that is called after the built-in setup rules are
executed.resourceResolverType - Resource resolver type.public SlingContext(SlingContextCallback setUpCallback, SlingContextCallback tearDownCallback)
MockSling.DEFAULT_RESOURCERESOLVER_TYPE.setUpCallback - Allows the application to register an own callback
function that is called after the built-in setup rules are
executed.tearDownCallback - Allows the application to register an own
callback function that is called before the built-in teardown
rules are executed.public SlingContext(SlingContextCallback setUpCallback, SlingContextCallback tearDownCallback, ResourceResolverType resourceResolverType)
setUpCallback - Allows the application to register an own callback
function that is called after the built-in setup rules are
executed.tearDownCallback - Allows the application to register an own
callback function that is called before the built-in teardown
rules are executed.resourceResolverType - Resource resolver type.Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.