A B C D E G H I J L O P R S T X

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
activate(ComponentContext) - Method in class org.apache.sling.junit.impl.AnnotationsProcessor
 
activate(ComponentContext) - Method in class org.apache.sling.junit.impl.BundleTestsProvider
 
activate(ComponentContext) - Method in class org.apache.sling.junit.impl.RendererSelectorImpl
 
activate(ComponentContext) - Method in class org.apache.sling.junit.impl.servlet.JUnitServlet
 
activate(ComponentContext) - Method in class org.apache.sling.junit.impl.TestsManagerImpl
 
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
 
AnnotationsProcessor - Class in org.apache.sling.junit.impl
Processor for annotations in test classes
AnnotationsProcessor() - Constructor for class org.apache.sling.junit.impl.AnnotationsProcessor
 
appliesTo(TestSelector) - Method in class org.apache.sling.junit.impl.servlet.HtmlRenderer
 
appliesTo(TestSelector) - Method in class org.apache.sling.junit.impl.servlet.JsonRenderer
 
appliesTo(TestSelector) - Method in class org.apache.sling.junit.impl.servlet.PlainTextRenderer
 
appliesTo(TestSelector) - Method in class org.apache.sling.junit.impl.servlet.XmlRenderer
 
appliesTo(TestSelector) - Method in interface org.apache.sling.junit.Renderer
True if this renderer applies to supplied request
AutoDetect - Class in org.apache.sling.junit.annotations
Placeholder class for default value of annotation properties with "auto detect" capabilities.

B

bundleChanged(BundleEvent) - Method in class org.apache.sling.junit.impl.BundleTestsProvider
Called when a bundle changes state
BundleTestsProvider - Class in org.apache.sling.junit.impl
A TestProvider that gets test classes from bundles that have a Sling-Test-Regexp header and corresponding exported classes.
BundleTestsProvider() - Constructor for class org.apache.sling.junit.impl.BundleTestsProvider
 

C

cleanup() - Method in class org.apache.sling.junit.impl.servlet.HtmlRenderer
 
cleanup() - Method in class org.apache.sling.junit.impl.servlet.JsonRenderer
 
cleanup() - Method in class org.apache.sling.junit.impl.servlet.PlainTextRenderer
 
cleanup() - Method in class org.apache.sling.junit.impl.servlet.XmlRenderer
 
cleanup() - Method in interface org.apache.sling.junit.Renderer
Called once rendering is done
createTest() - Method in class org.apache.sling.junit.annotations.SlingAnnotationsTestRunner
 
createTestClass(String) - Method in class org.apache.sling.junit.impl.BundleTestsProvider
 
createTestClass(String) - Method in interface org.apache.sling.junit.TestsProvider
Create a test class to execute the specified test.
CSS - Static variable in class org.apache.sling.junit.impl.servlet.JUnitServlet
 

D

deactivate(ComponentContext) - Method in class org.apache.sling.junit.impl.AnnotationsProcessor
 
deactivate(ComponentContext) - Method in class org.apache.sling.junit.impl.BundleTestsProvider
 
deactivate(ComponentContext) - Method in class org.apache.sling.junit.impl.RendererSelectorImpl
 
deactivate(ComponentContext) - Method in class org.apache.sling.junit.impl.servlet.JUnitServlet
 
deactivate(ComponentContext) - Method in class org.apache.sling.junit.impl.TestsManagerImpl
 
doGet(HttpServletRequest, HttpServletResponse) - Method in class org.apache.sling.junit.impl.servlet.JUnitServlet
GET request lists available tests
doPost(HttpServletRequest, HttpServletResponse) - Method in class org.apache.sling.junit.impl.servlet.JUnitServlet
POST request executes tests

E

executeTests(Collection<String>, Renderer, TestSelector) - Method in class org.apache.sling.junit.impl.TestsManagerImpl
 
executeTests(Collection<String>, 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.
EXTENSION - Static variable in class org.apache.sling.junit.impl.servlet.HtmlRenderer
 
EXTENSION - Static variable in class org.apache.sling.junit.impl.servlet.JsonRenderer
 
EXTENSION - Static variable in class org.apache.sling.junit.impl.servlet.PlainTextRenderer
 
EXTENSION - Static variable in class org.apache.sling.junit.impl.servlet.SlingJUnitServlet
 
EXTENSION - Static variable in class org.apache.sling.junit.impl.servlet.XmlRenderer
This renderer's extension

G

getBundleContext() - Static method in class org.apache.sling.junit.Activator
 
getDocumentBuilder() - Static method in class org.apache.sling.junit.impl.servlet.XmlRenderer
Create a DocumentBuilder.
getException(Throwable) - Static method in class org.apache.sling.junit.impl.servlet.XmlRenderer
Convert a Throwable object to its stack trace representation
getExtension() - Method in class org.apache.sling.junit.impl.servlet.HtmlRenderer
 
getExtension() - Method in class org.apache.sling.junit.impl.servlet.JsonRenderer
 
getExtension() - Method in class org.apache.sling.junit.impl.servlet.PlainTextRenderer
 
getExtension() - Method in class org.apache.sling.junit.impl.servlet.XmlRenderer
 
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 class org.apache.sling.junit.impl.RendererSelectorImpl
 
getRenderer(TestSelector) - Method in interface org.apache.sling.junit.RendererSelector
Select a Renderer for supplied TestSelector
getRenderers() - Method in class org.apache.sling.junit.impl.RendererSelectorImpl
 
getRenderers() - Method in interface org.apache.sling.junit.RendererSelector
Return all available Renderers
getRunListener() - Method in class org.apache.sling.junit.impl.servlet.HtmlRenderer
 
getRunListener() - Method in class org.apache.sling.junit.impl.servlet.JsonRenderer
 
getRunListener() - Method in class org.apache.sling.junit.impl.servlet.PlainTextRenderer
 
getRunListener() - Method in class org.apache.sling.junit.impl.servlet.XmlRenderer
 
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
If not null, only test methods having this name are executed
getServicePid() - Method in class org.apache.sling.junit.impl.BundleTestsProvider
 
getServicePid() - Method in interface org.apache.sling.junit.TestsProvider
Return this service's PID, client might use it later to instantiate a specific test.
getServletPath(ComponentContext) - Method in class org.apache.sling.junit.impl.servlet.JUnitServlet
Return the path at which to mount this servlet, or null if it must not be mounted.
getServletPath(ComponentContext) - Method in class org.apache.sling.junit.impl.servlet.SlingJUnitServlet
Do not register this servlet with HttpService ourselves, Sling will take care of that.
getStringFromElement(Element) - Static method in class org.apache.sling.junit.impl.servlet.XmlRenderer
Convert an Element to a String representation
getTestClass(String) - Method in class org.apache.sling.junit.impl.TestsManagerImpl
inheritDoc
getTestClass(String) - Method in interface org.apache.sling.junit.TestsManager
Instantiate test class for specified test
getTestExecutionPath(HttpServletRequest, TestSelector, String) - Method in class org.apache.sling.junit.impl.servlet.JUnitServlet
Return path to which to POST to execute specified test
getTestExecutionPath(HttpServletRequest, TestSelector, String) - Method in class org.apache.sling.junit.impl.servlet.SlingJUnitServlet
Return path to which to POST to execute specified test
getTestNames() - Method in class org.apache.sling.junit.impl.BundleTestsProvider
 
getTestNames(TestSelector) - Method in class org.apache.sling.junit.impl.TestsManagerImpl
inheritDoc
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
getTestSelectionPath(HttpServletRequest) - Method in class org.apache.sling.junit.impl.servlet.JUnitServlet
Return subpath to use for selecting tests
getTestSelectionPath(HttpServletRequest) - Method in class org.apache.sling.junit.impl.servlet.SlingJUnitServlet
 
getTestSelector(HttpServletRequest) - Method in class org.apache.sling.junit.impl.servlet.JUnitServlet
Return a TestSelector for supplied request
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

HtmlFilter - Class in org.apache.sling.junit.impl.servlet
Simple HTML output filtering
HtmlFilter() - Constructor for class org.apache.sling.junit.impl.servlet.HtmlFilter
 
HtmlRenderer - Class in org.apache.sling.junit.impl.servlet
HTML renderer for JUnit servlet
HtmlRenderer() - Constructor for class org.apache.sling.junit.impl.servlet.HtmlRenderer
 

I

info(String, String) - Method in class org.apache.sling.junit.impl.servlet.HtmlRenderer
 
info(String, String) - Method in class org.apache.sling.junit.impl.servlet.JsonRenderer
 
info(String, String) - Method in class org.apache.sling.junit.impl.servlet.PlainTextRenderer
 
info(String, String) - Method in class org.apache.sling.junit.impl.servlet.XmlRenderer
 
info(String, String) - Method in interface org.apache.sling.junit.Renderer
Render general information
INFO_SUBTYPE_KEY - Static variable in class org.apache.sling.junit.impl.servlet.JsonRenderer
 
INFO_TYPE_KEY - Static variable in class org.apache.sling.junit.impl.servlet.JsonRenderer
 

J

JsonRenderer - Class in org.apache.sling.junit.impl.servlet
HTML renderer for JUnit servlet
JsonRenderer() - Constructor for class org.apache.sling.junit.impl.servlet.JsonRenderer
 
JUnitServlet - Class in org.apache.sling.junit.impl.servlet
Simple test runner servlet
JUnitServlet() - Constructor for class org.apache.sling.junit.impl.servlet.JUnitServlet
 

L

lastModified() - Method in class org.apache.sling.junit.impl.BundleTestsProvider
 
lastModified() - Method in interface org.apache.sling.junit.TestsProvider
Return the timestamp at which our list of tests was last modified
link(String, String, String) - Method in class org.apache.sling.junit.impl.servlet.HtmlRenderer
 
link(String, String, String) - Method in class org.apache.sling.junit.impl.servlet.JsonRenderer
 
link(String, String, String) - Method in class org.apache.sling.junit.impl.servlet.PlainTextRenderer
 
link(String, String, String) - Method in class org.apache.sling.junit.impl.servlet.XmlRenderer
 
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 class org.apache.sling.junit.impl.servlet.HtmlRenderer
 
list(String, Collection<String>) - Method in class org.apache.sling.junit.impl.servlet.JsonRenderer
 
list(String, Collection<String>) - Method in class org.apache.sling.junit.impl.servlet.PlainTextRenderer
 
list(String, Collection<String>) - Method in class org.apache.sling.junit.impl.servlet.XmlRenderer
 
list(String, Collection<String>) - Method in interface org.apache.sling.junit.Renderer
Render a list of things
listTests(Collection<String>, Renderer) - Method in class org.apache.sling.junit.impl.TestsManagerImpl
 
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.

O

org.apache.sling.junit - package org.apache.sling.junit
 
org.apache.sling.junit.annotations - package org.apache.sling.junit.annotations
 
org.apache.sling.junit.impl - package org.apache.sling.junit.impl
 
org.apache.sling.junit.impl.servlet - package org.apache.sling.junit.impl.servlet
 

P

PlainTextRenderer - Class in org.apache.sling.junit.impl.servlet
 
PlainTextRenderer() - Constructor for class org.apache.sling.junit.impl.servlet.PlainTextRenderer
 
process(Object) - Method in class org.apache.sling.junit.impl.AnnotationsProcessor
Process annotations on the test object
process(Object) - Method in interface org.apache.sling.junit.TestObjectProcessor
 

R

Renderer - Interface in org.apache.sling.junit
Renderer for our servlet output
RendererSelector - Interface in org.apache.sling.junit
Provides a Renderer to execute tests
RendererSelectorImpl - Class in org.apache.sling.junit.impl
Default RendererSelector
RendererSelectorImpl() - Constructor for class org.apache.sling.junit.impl.RendererSelectorImpl
 
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

S

setup(HttpServletResponse, String) - Method in class org.apache.sling.junit.impl.servlet.HtmlRenderer
 
setup(HttpServletResponse, String) - Method in class org.apache.sling.junit.impl.servlet.JsonRenderer
 
setup(HttpServletResponse, String) - Method in class org.apache.sling.junit.impl.servlet.PlainTextRenderer
 
setup(HttpServletResponse, String) - Method in class org.apache.sling.junit.impl.servlet.XmlRenderer
 
setup(HttpServletResponse, String) - Method in interface org.apache.sling.junit.Renderer
Called first to setup rendering
SLING_TEST_REGEXP - Static variable in class org.apache.sling.junit.impl.BundleTestsProvider
 
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
 
SlingJUnitServlet - Class in org.apache.sling.junit.impl.servlet
Alternate entry point for testing, that uses the Sling request/response cycle.
SlingJUnitServlet() - Constructor for class org.apache.sling.junit.impl.servlet.SlingJUnitServlet
 
start(BundleContext) - Method in class org.apache.sling.junit.Activator
 
stop(BundleContext) - Method in class org.apache.sling.junit.Activator
 

T

testFailure(Failure) - Method in class org.apache.sling.junit.impl.servlet.HtmlRenderer
 
testFailure(Failure) - Method in class org.apache.sling.junit.impl.servlet.JsonRenderer
 
testFailure(Failure) - Method in class org.apache.sling.junit.impl.servlet.PlainTextRenderer
 
testFailure(Failure) - Method in class org.apache.sling.junit.impl.servlet.XmlRenderer
 
testFinished(Description) - Method in class org.apache.sling.junit.impl.servlet.HtmlRenderer
 
testFinished(Description) - Method in class org.apache.sling.junit.impl.servlet.JsonRenderer
 
testFinished(Description) - Method in class org.apache.sling.junit.impl.servlet.PlainTextRenderer
 
testFinished(Description) - Method in class org.apache.sling.junit.impl.servlet.XmlRenderer
 
testIgnored(Description) - Method in class org.apache.sling.junit.impl.servlet.HtmlRenderer
 
testIgnored(Description) - Method in class org.apache.sling.junit.impl.servlet.PlainTextRenderer
 
testIgnored(Description) - Method in class org.apache.sling.junit.impl.servlet.XmlRenderer
 
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.
testRunFinished(Result) - Method in class org.apache.sling.junit.impl.servlet.HtmlRenderer
 
testRunFinished(Result) - Method in class org.apache.sling.junit.impl.servlet.JsonRenderer
 
testRunFinished(Result) - Method in class org.apache.sling.junit.impl.servlet.PlainTextRenderer
 
testRunFinished(Result) - Method in class org.apache.sling.junit.impl.servlet.XmlRenderer
 
testRunStarted(Description) - Method in class org.apache.sling.junit.impl.servlet.HtmlRenderer
 
testRunStarted(Description) - Method in class org.apache.sling.junit.impl.servlet.PlainTextRenderer
 
testRunStarted(Description) - Method in class org.apache.sling.junit.impl.servlet.XmlRenderer
 
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
TestsManagerImpl - Class in org.apache.sling.junit.impl
 
TestsManagerImpl() - Constructor for class org.apache.sling.junit.impl.TestsManagerImpl
 
TestsProvider - Interface in org.apache.sling.junit
Provides tests, for example by scanning bundles, finding test resources in a content repository, etc.
testStarted(Description) - Method in class org.apache.sling.junit.impl.servlet.HtmlRenderer
 
testStarted(Description) - Method in class org.apache.sling.junit.impl.servlet.JsonRenderer
 
testStarted(Description) - Method in class org.apache.sling.junit.impl.servlet.PlainTextRenderer
 
testStarted(Description) - Method in class org.apache.sling.junit.impl.servlet.XmlRenderer
 
title(int, String) - Method in class org.apache.sling.junit.impl.servlet.HtmlRenderer
 
title(int, String) - Method in class org.apache.sling.junit.impl.servlet.JsonRenderer
 
title(int, String) - Method in class org.apache.sling.junit.impl.servlet.PlainTextRenderer
 
title(int, String) - Method in class org.apache.sling.junit.impl.servlet.XmlRenderer
 
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.impl.BundleTestsProvider
 
toString() - Method in class org.apache.sling.junit.RequestParser
 

X

XmlRenderer - Class in org.apache.sling.junit.impl.servlet
XML renderer for JUnit servlet
XmlRenderer() - Constructor for class org.apache.sling.junit.impl.servlet.XmlRenderer
 

A B C D E G H I J L O P R S T X

Copyright © 2007-2011 The Apache Software Foundation. All Rights Reserved.