Skip navigation links
A C D E F G H I L N O P R S T V W 

A

AbstractTypeBasedParameterResolver - Class in org.apache.sling.junit.jupiter.osgi.impl
Abstract ParameterResolver class that resolves any type-arguments in the parameter's type to their actual type and provides this resolvedParameterType to the abstract methods AbstractTypeBasedParameterResolver.supportsParameter(ParameterContext, ExtensionContext, Type) and AbstractTypeBasedParameterResolver.resolveParameter(ParameterContext, ExtensionContext, Type).
AbstractTypeBasedParameterResolver() - Constructor for class org.apache.sling.junit.jupiter.osgi.impl.AbstractTypeBasedParameterResolver
 
acceptTestName(String) - Method in class org.apache.sling.junit.RequestParser
 
acceptTestName(String) - Method in interface org.apache.sling.junit.TestSelector
If true, testName will be selected
Activator - Class in org.apache.sling.junit
Used to make our BundleContext available to JUnit classes that need it but have no OSGi context.
Activator() - Constructor for class org.apache.sling.junit.Activator
 
appliesTo(TestSelector) - Method in interface org.apache.sling.junit.Renderer
True if this renderer applies to supplied request
apply(Statement, Description) - Method in class org.apache.sling.junit.rules.Service
 
AutoDetect - Class in org.apache.sling.junit.annotations
Placeholder class for default value of annotation properties with "auto detect" capabilities.

C

classUnderTest - Variable in class org.apache.sling.junit.rules.TeleporterRule
 
cleanup() - Method in interface org.apache.sling.junit.Renderer
Called once rendering is done
clearCaches() - Method in interface org.apache.sling.junit.TestsManager
Deprecated.
Caches have been removed.
CLIENT_CLASS - Static variable in class org.apache.sling.junit.rules.TeleporterRule
Name of the implementation class to use when running on the client side
createContext() - Static method in class org.apache.sling.junit.SlingTestContextProvider
 
createInstance(Class<T>, String) - Static method in class org.apache.sling.junit.rules.TeleporterRule
 
createRenderer() - Method in interface org.apache.sling.junit.RendererFactory
 
createTest() - Method in class org.apache.sling.junit.annotations.SlingAnnotationsTestRunner
 
createTestClass(String) - Method in interface org.apache.sling.junit.TestsProvider
Create a test class to execute the specified test.
customize() - Method in class org.apache.sling.junit.rules.TeleporterRule
Use a Customizer, if one was defined, to customize this Rule
customize(TeleporterRule, String) - Method in interface org.apache.sling.junit.rules.TeleporterRule.Customizer
 
CUSTOMIZER_PATTERN - Static variable in class org.apache.sling.junit.rules.TeleporterRule
Class name pattern for Customizers

D

deleteContext() - Static method in class org.apache.sling.junit.SlingTestContextProvider
 
determineTypeArguments(Class<?>) - Static method in class org.apache.sling.junit.jupiter.osgi.impl.ReflectionHelper
 

E

embeddedResourcePaths - Variable in class org.apache.sling.junit.rules.TeleporterRule
 
executeTests(Renderer, TestSelector) - Method in interface org.apache.sling.junit.TestsManager
Execute tests and report results using supplied Renderer - does NOT call setup or cleanup on renderer.
executeTests(Collection<String>, Renderer, TestSelector) - Method in interface org.apache.sling.junit.TestsManager

F

forClass(Class<?>) - Static method in class org.apache.sling.junit.rules.TeleporterRule
Build a TeleporterRule for the given class, with no client setup options.
forClass(Class<?>, String) - Static method in class org.apache.sling.junit.rules.TeleporterRule
Build a TeleporterRule for the given class, with optional clientSetupOptions.

G

get() - Method in class org.apache.sling.junit.rules.OSGiService
 
getBundleContext() - Static method in class org.apache.sling.junit.Activator
 
getContext() - Static method in class org.apache.sling.junit.SlingTestContextProvider
 
getExtension() - Method in interface org.apache.sling.junit.Renderer
Return the extension that triggers this renderer
getExtension() - Method in class org.apache.sling.junit.RequestParser
 
getExtension() - Method in interface org.apache.sling.junit.TestSelector
Return the extension used to render results
getMethodName() - Method in class org.apache.sling.junit.RequestParser
 
getRenderer(TestSelector) - Method in interface org.apache.sling.junit.RendererSelector
Select a Renderer for supplied TestSelector.
getRenderers() - Method in interface org.apache.sling.junit.RendererSelector
Return all available Renderers
getRunListener() - Method in interface org.apache.sling.junit.Renderer
Provide a RunListener for JUnit tests
getSelectedTestMethodName() - Method in class org.apache.sling.junit.RequestParser
 
getSelectedTestMethodName() - Method in interface org.apache.sling.junit.TestSelector
Returns the name of the selected test.
getService(Class<T>) - Method in class org.apache.sling.junit.rules.Service
Return the service object.
getService(Class<T>) - Method in class org.apache.sling.junit.rules.TeleporterRule
If running on the server side, get an OSGi service
getService(Class<T>, String) - Method in class org.apache.sling.junit.rules.TeleporterRule
If running on the server side, get an OSGi service specified by an LDAP service filter
getServicePid() - Method in interface org.apache.sling.junit.TestsProvider
Deprecated.
No longer used.
getTestClass(String) - Method in interface org.apache.sling.junit.TestsManager
Instantiate test class for specified test
getTestNames(TestSelector) - Method in interface org.apache.sling.junit.TestsManager
Return the names of available tests
getTestNames() - Method in interface org.apache.sling.junit.TestsProvider
Return the list of available tests
getTestSelectorString() - Method in class org.apache.sling.junit.RequestParser
 
getTestSelectorString() - Method in interface org.apache.sling.junit.TestSelector
Return the String used to select tests

H

hasContext() - Static method in class org.apache.sling.junit.SlingTestContextProvider
 

I

info(String, String) - Method in interface org.apache.sling.junit.Renderer
Render general information
input() - Method in class org.apache.sling.junit.SlingTestContext
 
isServerSide() - Static method in class org.apache.sling.junit.rules.TeleporterRule
True if running on the server-side.

L

lastModified() - Method in interface org.apache.sling.junit.TestsProvider
Deprecated.
No longer used. TestManager always gets the latest tests from the TestsProvider instances. Any performance issues need to be addressed inside the TestsProvider implementation, e.g. by caching.
link(String, String, String) - Method in interface org.apache.sling.junit.Renderer
Render a link to specified URL using specified HTTP method
list(String, Collection<String>) - Method in interface org.apache.sling.junit.Renderer
Render a list of things
listTests(Collection<String>, Renderer) - Method in interface org.apache.sling.junit.TestsManager
List tests using supplied Renderer - does NOT call setup or cleanup on renderer.

N

NoTestCasesFoundException() - Constructor for exception org.apache.sling.junit.TestsManager.NoTestCasesFoundException
 

O

ofClass(Class<T>) - Static method in class org.apache.sling.junit.rules.OSGiService
 
org.apache.sling.junit - package org.apache.sling.junit
 
org.apache.sling.junit.annotations - package org.apache.sling.junit.annotations
 
org.apache.sling.junit.jupiter.osgi - package org.apache.sling.junit.jupiter.osgi
 
org.apache.sling.junit.jupiter.osgi.impl - package org.apache.sling.junit.jupiter.osgi.impl
 
org.apache.sling.junit.rules - package org.apache.sling.junit.rules
 
OSGi - Annotation Type in org.apache.sling.junit.jupiter.osgi
OSGi test annotation, for running unit tests within OSGi frameworks.
OSGiService<T> - Class in org.apache.sling.junit.rules
Improved variant of the Service class that uses generics.
output() - Method in class org.apache.sling.junit.SlingTestContext
 

P

parameterizedTypeForBaseClass(Class<?>, Class<?>) - Static method in class org.apache.sling.junit.jupiter.osgi.impl.ReflectionHelper
 
process(Object) - Method in interface org.apache.sling.junit.TestObjectProcessor
 

R

ReflectionHelper - Class in org.apache.sling.junit.jupiter.osgi.impl
Utility class used for resolving type-arguments to concrete types.
Renderer - Interface in org.apache.sling.junit
Renderer for our servlet output.
RendererFactory - Interface in org.apache.sling.junit
The original Renderer leads to non-reentrant services - this allows them to create a fresh Renderer that's never reused, as a workaround to avoid having to break the original Renderer contract.
RendererSelector - Interface in org.apache.sling.junit
Provides a Renderer to execute tests
RequestParser - Class in org.apache.sling.junit
Parse information from a request, to define which tests to run and which renderer to select.
RequestParser(String) - Constructor for class org.apache.sling.junit.RequestParser
Parse subpath, which is in the form TEST_SELECTOR/TEST_METHOD.EXTENSION or TEST_SELECTOR.EXTENSION
resolveParameter(ParameterContext, ExtensionContext, Type) - Method in class org.apache.sling.junit.jupiter.osgi.impl.AbstractTypeBasedParameterResolver
 
resolveParameter(ParameterContext, ExtensionContext) - Method in class org.apache.sling.junit.jupiter.osgi.impl.AbstractTypeBasedParameterResolver
 
resolveParameter(ParameterContext, ExtensionContext, Type) - Method in class org.apache.sling.junit.jupiter.osgi.impl.TypeBasedParameterResolver
 
run(RunNotifier) - Method in class org.apache.sling.junit.annotations.SlingAnnotationsTestRunner
 

S

Service - Annotation Type in org.apache.sling.junit.jupiter.osgi
The @Service annotation is to be used for test classes or methods annotated with the @OSGi annotation.
Service - Class in org.apache.sling.junit.rules
Allows a test class to obtain a reference to an OSGi service.
Service(Class<?>) - Constructor for class org.apache.sling.junit.rules.Service
 
ServiceCardinality - Enum in org.apache.sling.junit.jupiter.osgi
The cardinality of a service being injected is controlled via the type of the injected parameter and additionally via the @Service annotation's cardinality attribute.
Services - Annotation Type in org.apache.sling.junit.jupiter.osgi
Utility annotation used to allow the @Service annotation to be repeatable.
setClassUnderTest(Class<?>) - Method in class org.apache.sling.junit.rules.TeleporterRule
 
setup(HttpServletResponse, String) - Method in interface org.apache.sling.junit.Renderer
Called first to setup rendering
SlingAnnotationsTestRunner - Class in org.apache.sling.junit.annotations
TestRunner which uses a TestObjectProcessor to handle annotations in test classes.
SlingAnnotationsTestRunner(Class<?>) - Constructor for class org.apache.sling.junit.annotations.SlingAnnotationsTestRunner
 
SlingTestContext - Class in org.apache.sling.junit
Provide test parameters (the "input map") and allow tests to provide additional metadata (in an "output map") about their results.
SlingTestContext() - Constructor for class org.apache.sling.junit.SlingTestContext
 
SlingTestContextProvider - Class in org.apache.sling.junit
Provider of SlingTestContext that uses thread locals to provide per-testing thread contexts.
SlingTestContextProvider() - Constructor for class org.apache.sling.junit.SlingTestContextProvider
 
start(BundleContext) - Method in class org.apache.sling.junit.Activator
 
stop(BundleContext) - Method in class org.apache.sling.junit.Activator
 
supportsParameter(ParameterContext, ExtensionContext, Type) - Method in class org.apache.sling.junit.jupiter.osgi.impl.AbstractTypeBasedParameterResolver
 
supportsParameter(ParameterContext, ExtensionContext) - Method in class org.apache.sling.junit.jupiter.osgi.impl.AbstractTypeBasedParameterResolver
 
supportsParameter(ParameterContext, ExtensionContext, Type) - Method in class org.apache.sling.junit.jupiter.osgi.impl.TypeBasedParameterResolver
 

T

TeleporterRule - Class in org.apache.sling.junit.rules
JUnit Rule used to teleport a server-side test to a Sling instance to execute it there.
TeleporterRule() - Constructor for class org.apache.sling.junit.rules.TeleporterRule
Meant to be instantiated via TeleporterRule.forClass(java.lang.Class<?>)
TeleporterRule.Customizer - Interface in org.apache.sling.junit.rules
Customizer is used client-side to setup the server URL and other parameters
TestObjectProcessor - Interface in org.apache.sling.junit
Process test objects, to handle annotations, etc.
TestReference - Annotation Type in org.apache.sling.junit.annotations
Annotation used to inject services in test classes.
TestSelector - Interface in org.apache.sling.junit
Used by the TestsManager to select which tests to run
TestsManager - Interface in org.apache.sling.junit
Service that gives access to JUnit test classes
TestsManager.NoTestCasesFoundException - Exception in org.apache.sling.junit
 
TestsProvider - Interface in org.apache.sling.junit
Provides tests, for example by scanning bundles, finding test resources in a content repository, etc.
title(int, String) - Method in interface org.apache.sling.junit.Renderer
Render a title of a specified hierarchical level
toString() - Method in class org.apache.sling.junit.RequestParser
 
TypeBasedParameterResolver<T> - Class in org.apache.sling.junit.jupiter.osgi.impl
Abstract implementation of a ParameterResolver that resolves parameters of one given type.
TypeBasedParameterResolver() - Constructor for class org.apache.sling.junit.jupiter.osgi.impl.TypeBasedParameterResolver
 

V

valueOf(String) - Static method in enum org.apache.sling.junit.jupiter.osgi.ServiceCardinality
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.apache.sling.junit.jupiter.osgi.ServiceCardinality
Returns an array containing the constants of this enum type, in the order they are declared.

W

withResources(String...) - Method in class org.apache.sling.junit.rules.TeleporterRule
Tell the concrete teleporter to embed resources, based on their path, in the test bundle.
A C D E F G H I L N O P R S T V W 
Skip navigation links

Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.