public class RenderMachineImpl extends Object implements RenderMachine
Modifier and Type | Field and Description |
---|---|
String |
CUSTOM_DOCTESTER_STYLESHEET_FILENAME |
String |
CUSTOM_DOCTESTER_STYLESHEET_LOCATION |
String |
CUSTOM_DOCTESTER_STYLESHEET_LOCATION_WITHOUT_FILENAME |
Constructor and Description |
---|
RenderMachineImpl() |
Modifier and Type | Method and Description |
---|---|
static String |
convertStackTraceIntoHtml(Throwable throwable) |
String |
convertTextToId(String textAsH1) |
void |
copyAllAssetsLikeJQueryAndBootstrapFromResourcesToDoctesterOutputDirectory() |
void |
copyCustomUserSuppliedCssIfItExists() |
void |
finishAndWriteOut() |
void |
say(String textAsParagraph)
A text that will be wrapped inside a paragraph.
|
<T> void |
sayAndAssertThat(String message,
String reason,
T actual,
org.hamcrest.Matcher<? super T> matcher) |
<T> void |
sayAndAssertThat(String message,
T actual,
org.hamcrest.Matcher<? super T> matcher) |
List<org.apache.http.cookie.Cookie> |
sayAndGetCookies() |
org.apache.http.cookie.Cookie |
sayAndGetCookieWithName(String name) |
Response |
sayAndMakeRequest(Request httpRequest) |
void |
sayNextSection(String textAsH1)
A text that will be wrapped inside a h1.
|
void |
sayRaw(String rawHtml)
If you want to let the renderer render some raw custom html use this
method.
|
void |
setFileName(String fileName) |
void |
setTestBrowser(TestBrowser testBrowser) |
public final String CUSTOM_DOCTESTER_STYLESHEET_LOCATION_WITHOUT_FILENAME
public final String CUSTOM_DOCTESTER_STYLESHEET_FILENAME
public final String CUSTOM_DOCTESTER_STYLESHEET_LOCATION
public void say(String textAsParagraph)
RenderMachineCommands
say
in interface RenderMachineCommands
textAsParagraph
- A text that may contain html tags like "This is my
bold
text".public void sayNextSection(String textAsH1)
RenderMachineCommands
sayNextSection
in interface RenderMachineCommands
textAsH1
- A text that may contain html tags like "This is my
headline text".public List<org.apache.http.cookie.Cookie> sayAndGetCookies()
sayAndGetCookies
in interface RenderMachineCommands
public org.apache.http.cookie.Cookie sayAndGetCookieWithName(String name)
sayAndGetCookieWithName
in interface RenderMachineCommands
public Response sayAndMakeRequest(Request httpRequest)
sayAndMakeRequest
in interface RenderMachineCommands
public <T> void sayAndAssertThat(String message, T actual, org.hamcrest.Matcher<? super T> matcher)
sayAndAssertThat
in interface RenderMachineCommands
public <T> void sayAndAssertThat(String message, String reason, T actual, org.hamcrest.Matcher<? super T> matcher)
sayAndAssertThat
in interface RenderMachineCommands
public void sayRaw(String rawHtml)
RenderMachineCommands
sayRaw
in interface RenderMachineCommands
rawHtml
- A raw plain html String like "public void setTestBrowser(TestBrowser testBrowser)
setTestBrowser
in interface RenderMachine
public void finishAndWriteOut()
finishAndWriteOut
in interface RenderMachine
public void setFileName(String fileName)
setFileName
in interface RenderMachine
public void copyAllAssetsLikeJQueryAndBootstrapFromResourcesToDoctesterOutputDirectory()
public void copyCustomUserSuppliedCssIfItExists()
Copyright © 2015. All Rights Reserved.