@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 RendererFactory
public boolean appliesTo(TestSelector selector)
Renderer
public String getExtension()
Renderer
getExtension
in interface Renderer
public void setup(javax.servlet.http.HttpServletResponse response, String pageTitle) throws IOException, UnsupportedEncodingException
Renderer
setup
in interface Renderer
IOException
UnsupportedEncodingException
public void cleanup()
Renderer
public void info(String cssClass, String info)
Renderer
public void list(String cssClass, Collection<String> data)
Renderer
public void title(int level, String title)
Renderer
public void link(String info, String url, String method)
Renderer
public org.junit.runner.notification.RunListener getRunListener()
Renderer
getRunListener
in interface Renderer
public void testStarted(org.junit.runner.Description description) throws Exception
testStarted
in class org.junit.runner.notification.RunListener
Exception
public void testFinished(org.junit.runner.Description description) throws Exception
testFinished
in class org.junit.runner.notification.RunListener
Exception
public void testFailure(org.junit.runner.notification.Failure failure) throws Exception
testFailure
in class org.junit.runner.notification.RunListener
Exception
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.