A C D E F G H I L N O P R S T W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- 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
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
-
Deprecated.
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() - Method in interface org.apache.sling.junit.TestsProvider
-
Return the list of available tests
- getTestNames(TestSelector) - Method in interface org.apache.sling.junit.TestsManager
-
Return the names 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.
TestManageralways gets the latest tests from theTestsProviderinstances. Any performance issues need to be addressed inside theTestsProviderimplementation, 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
- name() - Method in annotation type org.apache.sling.junit.annotations.TestReference
-
The local name of the reference.
- 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.rules - package org.apache.sling.junit.rules
- 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
- process(Object) - Method in interface org.apache.sling.junit.TestObjectProcessor
R
- referenceInterface() - Method in annotation type org.apache.sling.junit.annotations.TestReference
-
The name of the service interface.
- 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
- run(RunNotifier) - Method in class org.apache.sling.junit.annotations.SlingAnnotationsTestRunner
S
- 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
- 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
SlingTestContextthat 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
T
- target() - Method in annotation type org.apache.sling.junit.annotations.TestReference
-
LDAP-style filter for targeting a specific reference implementation
- 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
TestsManagerto 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
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.
All Classes All Packages