@Service public class XmlRenderer extends org.junit.runner.notification.RunListener implements Renderer, RendererFactory
| Modifier and Type | Field and Description |
|---|---|
static String |
EXTENSION
This renderer's extension
|
| Constructor and Description |
|---|
XmlRenderer() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
appliesTo(TestSelector selector)
True if this renderer applies to supplied request
|
void |
cleanup()
Called once rendering is done
|
Renderer |
createRenderer() |
static DocumentBuilder |
getDocumentBuilder()
Create a DocumentBuilder.
|
static String |
getException(Throwable t)
Convert a Throwable object to its stack trace representation
|
String |
getExtension()
Return the extension that triggers this renderer
|
org.junit.runner.notification.RunListener |
getRunListener()
Provide a RunListener for JUnit tests
|
static String |
getStringFromElement(Element element)
Convert an Element to a String representation
|
void |
info(String cssClass,
String str)
Render general information
|
void |
link(String info,
String url,
String method)
Render a link to specified URL using specified HTTP method
|
void |
list(String cssClass,
Collection<String> data)
Render a list of things
|
void |
setup(javax.servlet.http.HttpServletResponse response,
String pageTitle)
Called first to setup rendering
|
void |
testFailure(org.junit.runner.notification.Failure failure) |
void |
testFinished(org.junit.runner.Description description) |
void |
testIgnored(org.junit.runner.Description description) |
void |
testRunFinished(org.junit.runner.Result result) |
void |
testRunStarted(org.junit.runner.Description description) |
void |
testStarted(org.junit.runner.Description description) |
void |
title(int level,
String title)
Render a title of a specified hierarchical level
|
public static final String EXTENSION
public Renderer createRenderer()
createRenderer in interface RendererFactorypublic boolean appliesTo(TestSelector selector)
Rendererpublic String getExtension()
RenderergetExtension in interface Rendererpublic void setup(javax.servlet.http.HttpServletResponse response,
String pageTitle)
throws IOException,
UnsupportedEncodingException
Renderersetup in interface RendererIOExceptionUnsupportedEncodingExceptionpublic void info(String cssClass, String str)
Rendererpublic void list(String cssClass, Collection<String> data)
Rendererpublic void title(int level,
String title)
Rendererpublic void link(String info, String url, String method)
Rendererpublic void cleanup()
Rendererpublic org.junit.runner.notification.RunListener getRunListener()
RenderergetRunListener in interface Rendererpublic void testFailure(org.junit.runner.notification.Failure failure)
throws Exception
testFailure in class org.junit.runner.notification.RunListenerExceptionpublic void testFinished(org.junit.runner.Description description)
throws Exception
testFinished in class org.junit.runner.notification.RunListenerExceptionpublic void testIgnored(org.junit.runner.Description description)
throws Exception
testIgnored in class org.junit.runner.notification.RunListenerExceptionpublic void testRunFinished(org.junit.runner.Result result)
throws Exception
testRunFinished in class org.junit.runner.notification.RunListenerExceptionpublic void testRunStarted(org.junit.runner.Description description)
throws Exception
testRunStarted in class org.junit.runner.notification.RunListenerExceptionpublic void testStarted(org.junit.runner.Description description)
throws Exception
testStarted in class org.junit.runner.notification.RunListenerExceptionpublic static DocumentBuilder getDocumentBuilder()
public static String getStringFromElement(Element element)
element - Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.