public interface Renderer
RendererFactory
as RendererSelectorImpl
doesModifier and Type | Method and Description |
---|---|
boolean |
appliesTo(TestSelector selector)
True if this renderer applies to supplied request
|
void |
cleanup()
Called once rendering is done
|
String |
getExtension()
Return the extension that triggers this renderer
|
org.junit.runner.notification.RunListener |
getRunListener()
Provide a RunListener for JUnit tests
|
void |
info(String role,
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 role,
Collection<String> data)
Render a list of things
|
void |
setup(javax.servlet.http.HttpServletResponse response,
String pageTitle)
Called first to setup rendering
|
void |
title(int level,
String title)
Render a title of a specified hierarchical level
|
boolean appliesTo(TestSelector selector)
selector
- a test selectortrue
if this renderer applied to the provided selector, false
otherwisevoid setup(javax.servlet.http.HttpServletResponse response, String pageTitle) throws IOException
response
- the http responsepageTitle
- the page titleIOException
- if an error occursvoid cleanup()
void list(String role, Collection<String> data)
role
- describes the role of the list, must be a valid CSS class valuedata
- the list to rendervoid info(String role, String info)
role
- describes the role of the list, must be a valid CSS class valueinfo
- the general informationvoid title(int level, String title)
level
- the leveltitle
- the titlevoid link(String info, String url, String method)
info
- the infourl
- the link to rendermethod
- the HTTP method to useorg.junit.runner.notification.RunListener getRunListener()
String getExtension()
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.