@Service public class PlainTextRenderer extends org.junit.runner.notification.RunListener implements Renderer, RendererFactory
| Constructor and Description |
|---|
PlainTextRenderer() |
| 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() |
String |
getExtension()
Return the extension that triggers this renderer
|
org.junit.runner.notification.RunListener |
getRunListener()
Provide a RunListener for JUnit tests
|
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 cleanup()
Rendererpublic 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 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.RunListenerExceptionCopyright © 2007–2017 The Apache Software Foundation. All rights reserved.