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