org.apache.sling.junit.remote.ide
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
@Service
public class SerializedRenderer
- extends org.junit.runner.notification.RunListener
- implements org.apache.sling.junit.Renderer
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.
|
Field Summary |
static java.lang.String |
EXTENSION
|
|
Method Summary |
boolean |
appliesTo(org.apache.sling.junit.TestSelector s)
|
void |
cleanup()
|
java.lang.String |
getExtension()
|
org.junit.runner.notification.RunListener |
getRunListener()
|
void |
info(java.lang.String role,
java.lang.String info)
|
void |
link(java.lang.String info,
java.lang.String url,
java.lang.String method)
|
void |
list(java.lang.String role,
java.util.Collection<java.lang.String> data)
|
void |
setup(javax.servlet.http.HttpServletResponse response,
java.lang.String pageTitle)
|
void |
testRunFinished(org.junit.runner.Result result)
|
void |
title(int level,
java.lang.String title)
|
| Methods inherited from class org.junit.runner.notification.RunListener |
testAssumptionFailure, testFailure, testFinished, testIgnored, testRunStarted, testStarted |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EXTENSION
public static final java.lang.String EXTENSION
- See Also:
- Constant Field Values
SerializedRenderer
public SerializedRenderer()
appliesTo
public boolean appliesTo(org.apache.sling.junit.TestSelector s)
- Specified by:
appliesTo in interface org.apache.sling.junit.Renderer
getExtension
public java.lang.String getExtension()
- Specified by:
getExtension in interface org.apache.sling.junit.Renderer
setup
public void setup(javax.servlet.http.HttpServletResponse response,
java.lang.String pageTitle)
throws java.io.IOException,
java.io.UnsupportedEncodingException
- Specified by:
setup in interface org.apache.sling.junit.Renderer
- Throws:
java.io.IOException
java.io.UnsupportedEncodingException
cleanup
public void cleanup()
- Specified by:
cleanup in interface org.apache.sling.junit.Renderer
getRunListener
public org.junit.runner.notification.RunListener getRunListener()
- Specified by:
getRunListener in interface org.apache.sling.junit.Renderer
info
public void info(java.lang.String role,
java.lang.String info)
- Specified by:
info in interface org.apache.sling.junit.Renderer
link
public void link(java.lang.String info,
java.lang.String url,
java.lang.String method)
- Specified by:
link in interface org.apache.sling.junit.Renderer
list
public void list(java.lang.String role,
java.util.Collection<java.lang.String> data)
- Specified by:
list in interface org.apache.sling.junit.Renderer
title
public void title(int level,
java.lang.String title)
- Specified by:
title in interface org.apache.sling.junit.Renderer
testRunFinished
public void testRunFinished(org.junit.runner.Result result)
throws java.io.IOException
- Overrides:
testRunFinished in class org.junit.runner.notification.RunListener
- Throws:
java.io.IOException
Copyright © 2007-2011 The Apache Software Foundation. All Rights Reserved.