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 TypeMethodDescriptionbooleanappliesTo(org.apache.sling.junit.TestSelector s) voidcleanup()org.apache.sling.junit.Rendererorg.junit.runner.notification.RunListenervoidvoidvoidlist(String role, Collection<String> data) voidvoidtestRunFinished(org.junit.runner.Result result) voidMethods 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:
createRendererin interfaceorg.apache.sling.junit.RendererFactory
-
appliesTo
public boolean appliesTo(org.apache.sling.junit.TestSelector s) - Specified by:
appliesToin interfaceorg.apache.sling.junit.Renderer
-
getExtension
- Specified by:
getExtensionin interfaceorg.apache.sling.junit.Renderer
-
setup
public void setup(javax.servlet.http.HttpServletResponse response, String pageTitle) throws IOException, UnsupportedEncodingException - Specified by:
setupin interfaceorg.apache.sling.junit.Renderer- Throws:
IOExceptionUnsupportedEncodingException
-
cleanup
public void cleanup()- Specified by:
cleanupin interfaceorg.apache.sling.junit.Renderer
-
getRunListener
public org.junit.runner.notification.RunListener getRunListener()- Specified by:
getRunListenerin interfaceorg.apache.sling.junit.Renderer
-
info
- Specified by:
infoin interfaceorg.apache.sling.junit.Renderer
-
link
- Specified by:
linkin interfaceorg.apache.sling.junit.Renderer
-
list
- Specified by:
listin interfaceorg.apache.sling.junit.Renderer
-
title
- Specified by:
titlein interfaceorg.apache.sling.junit.Renderer
-
testRunFinished
- Overrides:
testRunFinishedin classorg.junit.runner.notification.RunListener- Throws:
IOException
-