Class SerializedRenderer
java.lang.Object
org.junit.runner.notification.RunListener
org.apache.sling.junit.remote.ide.SerializedRenderer
- All Implemented Interfaces:
org.apache.sling.junit.Renderer
,org.apache.sling.junit.RendererFactory
public class SerializedRenderer
extends org.junit.runner.notification.RunListener
implements org.apache.sling.junit.Renderer, org.apache.sling.junit.RendererFactory
Renderer for Sling JUnit server-side testing, which
renders test results in binary form.
Used to send results, and especially Exceptions, as
is to a remote IDE.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.junit.runner.notification.RunListener
org.junit.runner.notification.RunListener.ThreadSafe
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
appliesTo
(org.apache.sling.junit.TestSelector s) void
cleanup()
org.apache.sling.junit.Renderer
org.junit.runner.notification.RunListener
void
void
void
list
(String role, Collection<String> data) void
void
testRunFinished
(org.junit.runner.Result result) void
Methods inherited from class org.junit.runner.notification.RunListener
testAssumptionFailure, testFailure, testFinished, testIgnored, testRunStarted, testStarted, testSuiteFinished, testSuiteStarted
-
Field Details
-
EXTENSION
- See Also:
-
-
Constructor Details
-
SerializedRenderer
public SerializedRenderer()
-
-
Method Details
-
createRenderer
public org.apache.sling.junit.Renderer createRenderer()- Specified by:
createRenderer
in interfaceorg.apache.sling.junit.RendererFactory
-
appliesTo
public boolean appliesTo(org.apache.sling.junit.TestSelector s) - Specified by:
appliesTo
in interfaceorg.apache.sling.junit.Renderer
-
getExtension
- Specified by:
getExtension
in interfaceorg.apache.sling.junit.Renderer
-
setup
public void setup(javax.servlet.http.HttpServletResponse response, String pageTitle) throws IOException, UnsupportedEncodingException - Specified by:
setup
in interfaceorg.apache.sling.junit.Renderer
- Throws:
IOException
UnsupportedEncodingException
-
cleanup
public void cleanup()- Specified by:
cleanup
in interfaceorg.apache.sling.junit.Renderer
-
getRunListener
public org.junit.runner.notification.RunListener getRunListener()- Specified by:
getRunListener
in interfaceorg.apache.sling.junit.Renderer
-
info
- Specified by:
info
in interfaceorg.apache.sling.junit.Renderer
-
link
- Specified by:
link
in interfaceorg.apache.sling.junit.Renderer
-
list
- Specified by:
list
in interfaceorg.apache.sling.junit.Renderer
-
title
- Specified by:
title
in interfaceorg.apache.sling.junit.Renderer
-
testRunFinished
- Overrides:
testRunFinished
in classorg.junit.runner.notification.RunListener
- Throws:
IOException
-