A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _

A

additionalPackages() - Method in ModelSpec
Register Sling Models for additional package names.
addModelsForClasses(Class) - Method in SlingContextProvider
Scan classpath for given classes and register all classes with @Model annotation.
addModelsForPackage(String) - Method in SlingContextProvider
Scan classpath for given package names (and sub packages) and register all classes with @Model annotation.
assertNodeExists(String, String, Map<String, Object>) - Method in ProsperSpec
Assert that a node exists for the given path, node type, and property map.
assertPageExists(String, Map<String, Object>) - Method in ProsperSpec
Assert that a page exists for the given path and contains the given properties.

B

build(Closure) - Method in RequestBuilder
Build a Sling request using a closure to set request properties.
build(Closure) - Method in ResponseBuilder
Build a Sling response using a closure to set response properties.

C

cleanupSpec() - Method in ProsperSpec
Remove Groovy metaclasses and test content.
ContentFilter - Annotation Type in com.icfolson.aem.prosper.annotations
Filter representing an element in a workspace filter.
ContentFilterRule - Annotation Type in com.icfolson.aem.prosper.annotations
Rule to apply for a content filter.
ContentFilterRuleType - Enum in com.icfolson.aem.prosper.annotations
ContentFilters - Annotation Type in com.icfolson.aem.prosper.annotations
Specify the filters to use when importing content for an annotated spec.

D

E

F

filters() - Method in ContentFilters
Explicitly define filters for the content import.

G

getBundleContext() - Method in ProsperSlingContext
getBundleContext() - Method in SlingContextProvider
Get the mock OSGi bundle context.
getNode(String) - Method in ProsperSpec
Get the Node for a path.
getNodeBuilder() - Method in ProsperSpec
@return JCR node builder
getPage(String) - Method in ProsperSpec
Get the Page for a path.
getPageBuilder() - Method in ProsperSpec
@return CQ page builder
getPageManager() - Method in ProsperSpec
@return CQ page manager
getRequestBuilder() - Method in ProsperSpec
Get a request builder.
getResource(String) - Method in ProsperSpec
Get the Resource for a path.
getResourceResolver() - Method in ProsperSlingContext
getResourceResolver() - Method in ProsperSpec
@return admin resource resolver
getResourceResolver() - Method in SlingContextProvider
Get the Sling resource resolver for the current Sling context.
getResponseBuilder() - Method in ProsperSpec
Get a response builder.
getService(Class<ServiceType>) - Method in SlingContextProvider
Lookup a single service.
getServices(Class<ServiceType>, String) - Method in SlingContextProvider
Lookup one or several services.
getSession() - Method in ProsperSpec
@return admin session
getSlingContext() - Method in ProsperSpec

H

I

J

K

L

M

mode() - Method in ContentFilter
Import mode to apply for this filter.
ModelSpec - Annotation Type in com.icfolson.aem.prosper.annotations
Indicate that a spec should register Sling Models for the current package.

N

NodeTypes - Annotation Type in com.icfolson.aem.prosper.annotations
Add JCR namespaces and node types by providing a list of paths to CND files.

O

P

pattern() - Method in ContentFilterRule
Regular expression pattern to apply for the path filter.
ProsperMockSlingHttpServletRequest - Class in com.icfolson.aem.prosper.mocks
Extension of Sling mock with additional convenience methods for setting request path info.
ProsperMockSlingHttpServletRequest(ResourceResolver, BundleContext) - Constructor in ProsperMockSlingHttpServletRequest
ProsperSlingContext - Class in com.icfolson.aem.prosper.context
Prosper implementation of the Sling/OSGi context rule for usage in specs.
ProsperSpec - Class in com.icfolson.aem.prosper.specs
Spock specification for AEM testing that includes a Sling context for mock repository operations and a simulated OSGi environment for registering services and adapters.

Q

R

registerAdapter(Class, Class, Closure) - Method in ProsperSlingContext
registerAdapter(Class, Class, Closure) - Method in SlingContextProvider
Register an adapter for the current Prosper context.
registerAdapterFactory(AdapterFactory, String, String) - Method in ProsperSlingContext
registerAdapterFactory(AdapterFactory, String, String) - Method in SlingContextProvider
Register an adapter factory for the current Prosper context.
registerInjectActivateService(T, Map<String, Object>) - Method in SlingContextProvider
Injects dependencies, activates and registers a service in the mocked OSGi environment.
registerInjector(Injector, Integer) - Method in ProsperSlingContext
registerInjector(Injector, Integer) - Method in SlingContextProvider
Register a Sling Injector for use in a test.
registerRequestAdapter(Class, Closure) - Method in ProsperSlingContext
registerRequestAdapter(Class, Closure) - Method in SlingContextProvider
Convenience method to register an adapter for SlingHttpServletRequest instances.
registerResourceAdapter(Class, Closure) - Method in ProsperSlingContext
registerResourceAdapter(Class, Closure) - Method in SlingContextProvider
Convenience method to register an adapter for Resource instances.
registerResourceResolverAdapter(Class, Closure) - Method in ProsperSlingContext
registerResourceResolverAdapter(Class, Closure) - Method in SlingContextProvider
Convenience method to register an adapter for ResourceResolver instances.
registerService(Class<T>, T, Map<String, Object>) - Method in SlingContextProvider
Registers a service in the mocked OSGi environment.
removeAllNodes() - Method in ProsperSpec
Remove all non-system nodes to cleanup any test data.
RequestBuilder - Class in com.icfolson.aem.prosper.builders
Builder to assist in creating SlingHttpServletRequest objects.
RequestBuilder(ResourceResolver, BundleContext) - Constructor in RequestBuilder
Create a request builder for a test spec.
ResponseBuilder - Class in com.icfolson.aem.prosper.builders
Builder to assist in creating SlingHttpServletResponse objects.
root() - Method in ContentFilter
Root path for filter element.
rules() - Method in ContentFilter
Inclusion and/or exclusion rules to apply for this filter.
runMode(String) - Method in SlingContextProvider
Set current run mode(s).

S

setExtension(String) - Method in ProsperMockSlingHttpServletRequest
Set the request extension
setParameterMap(Map<String, Object>) - Method in ProsperMockSlingHttpServletRequest
Set the request parameter map.
setPath(String) - Method in ProsperMockSlingHttpServletRequest
Set the resource path.
setSelectors(List<String>) - Method in ProsperMockSlingHttpServletRequest
Add selectors to the request.
setSuffix(String) - Method in ProsperMockSlingHttpServletRequest
Set the request suffix.
setup() - Method in ProsperSpec
Refresh the shared resource resolver before each test run.
setupSpec() - Method in ProsperSpec
Create an administrative JCR session with content builders, register Sling adapters, and instantiate a mock resource resolver.
SkipContentImport - Annotation Type in com.icfolson.aem.prosper.annotations
SlingContextProvider - Interface in com.icfolson.aem.prosper.context
Selection of methods exposed from the Sling and OSGi contexts.

T

type() - Method in ContentFilterRule
Set whether this rule is an include or an exclude.

U

V

value() - Method in NodeTypes
Set additional node types to register for the annotated spec.

W

X

xml() - Method in ContentFilters
Path to a complete vault filter.xml file.

Y

Z

_

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _