A B C D F G I L M R S T

A

adaptTo(Object, Class<AdapterType>) - Method in class com.scit.sling.test.MockAdapter
 
adaptTo(Class<AdapterType>) - Method in class com.scit.sling.test.MockResource
 
adaptTo(Class<AdapterType>) - Method in class com.scit.sling.test.MockResourceResolver
 
addAdaptable(Class<AdapterType>, AdapterType) - Method in class com.scit.sling.test.MockAdapter
Setup the #adaptTo(Class) to be able to adapt to a specific target.
addChild(ResourceNode) - Method in class com.scit.sling.test.ResourceNode
Add a child and possibly another subtree
addProperty(String, Object) - Method in class com.scit.sling.test.ResourceNode
Add a property node

B

buildMockRepository(ResourceNode) - Static method in class com.scit.sling.test.MockResourceFactory
Build a MockResourceResolver with all MockResource and MockValueMap setup from a ResourceNode that has possibly been loaded from MockResourceFactory.loadRepositoryFromJson(String, InputStream) or built manually
buildMockRepositoryJson(String, InputStream) - Static method in class com.scit.sling.test.MockResourceFactory
Helper factory method that does:
ResourceNode root = loadRepositoryFromJson(basePath, in);
return buildMockRepository(root);

C

com.scit.sling.test - package com.scit.sling.test
 

D

DATE_TIME_FORMAT - Static variable in class com.scit.sling.test.MockResourceFactory
 
DATE_TIME_FORMAT - Static variable in class com.scit.sling.test.MockValueMap
 

F

fullContent(int) - Method in class com.scit.sling.test.ResourceNode
 

G

get(String, Class<T>) - Method in class com.scit.sling.test.MockValueMap
 
get(String, T) - Method in class com.scit.sling.test.MockValueMap
 
getChildren() - Method in class com.scit.sling.test.ResourceNode
 
getMockAdaptable() - Method in class com.scit.sling.test.MockResource
 
getMockAdaptable() - Method in class com.scit.sling.test.MockResourceResolver
 
getPath() - Method in class com.scit.sling.test.ResourceNode
 
getProperties() - Method in class com.scit.sling.test.ResourceNode
 
getSearchPath() - Method in class com.scit.sling.test.MockResourceResolver
 

I

isResourceType(Resource, String) - Method in class com.scit.sling.test.MockResourceResolver
Best effort implementation to check on resource type/superType

L

loadRepositoryFromJson(String, InputStream) - Static method in class com.scit.sling.test.MockResourceFactory
Build a MockResourceResolver with all MockResource and MockValueMap.
The format of the JSON input is compatible with the Apache Sling json representations of the JCR, i.e.

M

MockAdapter - Class in com.scit.sling.test
A Mock Adaptable that can be easily setup
MockAdapter() - Constructor for class com.scit.sling.test.MockAdapter
 
MockAdapter(Map<Class<?>, Object>, Collection<AdapterFactory>) - Constructor for class com.scit.sling.test.MockAdapter
 
MockResource - Class in com.scit.sling.test
An mock Resource that can be adapted to ValueMap and possibly other adaptables.
MockResource(ResourceResolver, String, String, String) - Constructor for class com.scit.sling.test.MockResource
 
MockResource(ResourceResolver, String, String) - Constructor for class com.scit.sling.test.MockResource
 
MockResourceFactory - Class in com.scit.sling.test
Factory for creating MockResource/MockResourceResolver.
MockResourceFactory() - Constructor for class com.scit.sling.test.MockResourceFactory
 
MockResourceResolver - Class in com.scit.sling.test
 
MockResourceResolver() - Constructor for class com.scit.sling.test.MockResourceResolver
 
MockValueMap - Class in com.scit.sling.test
A Mock ValueMap that has some basic type conversion.
MockValueMap() - Constructor for class com.scit.sling.test.MockValueMap
 

R

ResourceNode - Class in com.scit.sling.test
This class is used to represent a JRC subtree.
ResourceNode(String, String) - Constructor for class com.scit.sling.test.ResourceNode
Create a root node that represents a location somewhere on a resource tree.
ResourceNode(ResourceNode, String) - Constructor for class com.scit.sling.test.ResourceNode
 

S

setAdapterFactories(Collection<AdapterFactory>) - Method in class com.scit.sling.test.MockAdapter
Add an AdapterFactory for custom adaptations

T

toString() - Method in class com.scit.sling.test.ResourceNode
 

A B C D F G I L M R S T

Copyright © 2013 Southern Cross IT. All rights reserved.