@Service public class JsonRenderer extends org.junit.runner.notification.RunListener implements Renderer, RendererFactory
| Modifier and Type | Field and Description |
|---|---|
static String |
EXTENSION |
static String |
INFO_SUBTYPE_KEY |
static String |
INFO_TYPE_KEY |
static String |
TEST_METADATA |
| Constructor and Description |
|---|
JsonRenderer() |
| 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 info)
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 |
testRunFinished(org.junit.runner.Result result) |
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 static final String INFO_TYPE_KEY
public static final String INFO_SUBTYPE_KEY
public static final String TEST_METADATA
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 info)
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 testStarted(org.junit.runner.Description description)
throws Exception
testStarted 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 testFailure(org.junit.runner.notification.Failure failure)
throws Exception
testFailure in class org.junit.runner.notification.RunListenerExceptionCopyright © 2007–2017 The Apache Software Foundation. All rights reserved.