public abstract class RenderingTestCase extends Object
| Modifier and Type | Field and Description |
|---|---|
static DataKey<Boolean> |
FAIL |
static String |
FAIL_OPTION_NAME |
static String |
FILE_EOL_OPTION_NAME |
static DataKey<Boolean> |
IGNORE |
static String |
IGNORE_OPTION_NAME |
static DataKey<Boolean> |
NO_FILE_EOL |
static String |
NO_FILE_EOL_OPTION_NAME |
org.junit.rules.ExpectedException |
thrown |
| Constructor and Description |
|---|
RenderingTestCase() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
actualAst(String ast,
String optionSet) |
protected void |
actualHtml(String html,
String optionSet) |
protected void |
actualSource(String html,
String optionSet) |
protected void |
assertAst(String source,
String expectedAst,
String optionsSet) |
protected void |
assertRendering(String source,
String expectedHtml) |
protected void |
assertRendering(String source,
String expectedHtml,
String optionsSet) |
protected void |
assertRenderingAst(String source,
String expectedHtml,
String expectedAst,
String optionsSet) |
String |
ast(Node node) |
abstract SpecExample |
example() |
DataHolder |
getOptions(SpecExample example,
String optionSets)
process comma separated list of option sets and combine them for final set to use
|
DataHolder |
options(String optionSet)
Customize options for an example
|
abstract IParse |
parser() |
abstract IRender |
renderer() |
protected void |
specExample(String expected,
String actual,
String optionSet) |
protected boolean |
useActualHtml() |
public static final String IGNORE_OPTION_NAME
public static final String FAIL_OPTION_NAME
public static final String NO_FILE_EOL_OPTION_NAME
public static final String FILE_EOL_OPTION_NAME
public org.junit.rules.ExpectedException thrown
public abstract IParse parser()
public abstract IRender renderer()
public abstract SpecExample example()
public DataHolder options(String optionSet)
optionSet - name of the options set to usepublic DataHolder getOptions(SpecExample example, String optionSets)
example - spec example instance for which options are being processedoptionSets - comma separate list of option set namesprotected boolean useActualHtml()
protected void assertRendering(String source, String expectedHtml, String optionsSet)
protected void assertRenderingAst(String source, String expectedHtml, String expectedAst, String optionsSet)
Copyright © 2017. All rights reserved.