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 |
|---|---|
String |
convertTextToId(String textAsH1) |
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)
RenderMachineCommandssay in interface RenderMachineCommandstextAsParagraph - A text that may contain html tags like "This is my bold
text".public void sayNextSection(String textAsH1)
RenderMachineCommandssayNextSection in interface RenderMachineCommandstextAsH1 - A text that may contain html tags like "This is my headline
text".public List<org.apache.http.cookie.Cookie> sayAndGetCookies()
sayAndGetCookies in interface RenderMachineCommandspublic org.apache.http.cookie.Cookie sayAndGetCookieWithName(String name)
sayAndGetCookieWithName in interface RenderMachineCommandspublic Response sayAndMakeRequest(Request httpRequest)
sayAndMakeRequest in interface RenderMachineCommandspublic <T> void sayAndAssertThat(String message, T actual, org.hamcrest.Matcher<? super T> matcher)
sayAndAssertThat in interface RenderMachineCommandspublic <T> void sayAndAssertThat(String message, String reason, T actual, org.hamcrest.Matcher<? super T> matcher)
sayAndAssertThat in interface RenderMachineCommandspublic void sayRaw(String rawHtml)
RenderMachineCommandssayRaw in interface RenderMachineCommandsrawHtml - A raw plain html String like "public void setTestBrowser(TestBrowser testBrowser)
setTestBrowser in interface RenderMachinepublic void finishAndWriteOut()
finishAndWriteOut in interface RenderMachinepublic void setFileName(String fileName)
setFileName in interface RenderMachineCopyright © 2013. All Rights Reserved.