@Service(serviceFactory=true) public class HtmlRenderer extends org.junit.runner.notification.RunListener implements Renderer, RendererFactory
Constructor and Description |
---|
HtmlRenderer() |
Modifier and Type | Method and Description |
---|---|
boolean |
appliesTo(TestSelector s)
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 RendererFactory
public boolean appliesTo(TestSelector s)
Renderer
public String getExtension()
Renderer
getExtension
in interface Renderer
public void info(String cssClass, String str)
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 void setup(javax.servlet.http.HttpServletResponse response, String pageTitle) throws IOException, UnsupportedEncodingException
Renderer
setup
in interface Renderer
IOException
UnsupportedEncodingException
public void cleanup()
Renderer
public org.junit.runner.notification.RunListener getRunListener()
Renderer
getRunListener
in interface Renderer
public void testFailure(org.junit.runner.notification.Failure failure) throws Exception
testFailure
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 testIgnored(org.junit.runner.Description description) throws Exception
testIgnored
in class org.junit.runner.notification.RunListener
Exception
public void testRunFinished(org.junit.runner.Result result) throws Exception
testRunFinished
in class org.junit.runner.notification.RunListener
Exception
public void testRunStarted(org.junit.runner.Description description) throws Exception
testRunStarted
in class org.junit.runner.notification.RunListener
Exception
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.