public abstract class FileSpecTestCase extends RenderingTestCase
| Modifier and Type | Field and Description |
|---|---|
protected SpecExample |
example |
FAIL, FAIL_OPTION_NAME, FILE_EOL_OPTION_NAME, IGNORE, IGNORE_OPTION_NAME, NO_FILE_EOL, NO_FILE_EOL_OPTION_NAME, thrown| Constructor and Description |
|---|
FileSpecTestCase(SpecExample example) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
actualAst(String ast,
String optionSet) |
protected void |
actualHtml(String html,
String optionSet) |
protected void |
actualSource(String source,
String optionSet) |
static List<Object[]> |
data() |
static List<Object[]> |
dataFromFiles(String[] fileNames,
String prefix) |
static List<Object[]> |
dataFromSeparateFiles(String[] fileNames,
String prefix,
boolean dumpHtml,
boolean dumpAst) |
protected abstract String |
dumpDir() |
protected abstract String |
dumpHeader() |
SpecExample |
example() |
protected static String |
readResource(String resourcePath) |
protected static String |
readStream(InputStream stream) |
protected void |
specExample(String expected,
String actual,
String optionSet) |
void |
testHtmlRendering() |
protected boolean |
useActualHtml() |
assertAst, assertRendering, assertRendering, assertRenderingAst, ast, getOptions, options, parser, rendererprotected final SpecExample example
public FileSpecTestCase(SpecExample example)
public SpecExample example()
example in class RenderingTestCaseprotected abstract String dumpDir()
protected abstract String dumpHeader()
protected void actualSource(String source, String optionSet)
actualSource in class RenderingTestCaseprotected void actualHtml(String html, String optionSet)
actualHtml in class RenderingTestCaseprotected void actualAst(String ast, String optionSet)
actualAst in class RenderingTestCaseprotected void specExample(String expected, String actual, String optionSet)
specExample in class RenderingTestCasepublic static List<Object[]> dataFromSeparateFiles(String[] fileNames, String prefix, boolean dumpHtml, boolean dumpAst)
protected boolean useActualHtml()
useActualHtml in class RenderingTestCaseprotected static String readStream(InputStream stream)
public void testHtmlRendering()
Copyright © 2017. All rights reserved.