public abstract class RenderingTestCase extends Object
| Modifier and Type | Field and Description |
|---|---|
static com.vladsch.flexmark.util.options.DataKey<Boolean> |
EMBED_TIMED |
static String |
EMBED_TIMED_OPTION_NAME |
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<String> |
INCLUDED_DOCUMENT |
static com.vladsch.flexmark.util.options.DataKey<Boolean> |
NO_FILE_EOL |
static String |
NO_FILE_EOL_OPTION_NAME |
static com.vladsch.flexmark.util.options.DataKey<String> |
SOURCE_INDENT |
static com.vladsch.flexmark.util.options.DataKey<String> |
SOURCE_PREFIX |
static com.vladsch.flexmark.util.options.DataKey<String> |
SOURCE_SUFFIX |
org.junit.rules.ExpectedException |
thrown |
static com.vladsch.flexmark.util.options.DataKey<Boolean> |
TIMED |
static String |
TIMED_FORMAT_STRING |
static com.vladsch.flexmark.util.options.DataKey<Integer> |
TIMED_ITERATIONS |
static String |
TIMED_ITERATIONS_NAME |
static String |
TIMED_OPTION_NAME |
| 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 com.vladsch.flexmark.IParse |
adjustParserForInclusion(com.vladsch.flexmark.IParse parserWithOptions,
com.vladsch.flexmark.ast.Document includedDocument) |
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) |
static com.vladsch.flexmark.util.sequence.BasedSequence |
stripIndent(com.vladsch.flexmark.util.sequence.BasedSequence input,
CharSequence sourceIndent) |
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 final String TIMED_ITERATIONS_NAME
public static final String TIMED_OPTION_NAME
public static final String EMBED_TIMED_OPTION_NAME
public static final String TIMED_FORMAT_STRING
public static final com.vladsch.flexmark.util.options.DataKey<Boolean> FAIL
public static final com.vladsch.flexmark.util.options.DataKey<Boolean> IGNORE
public static final com.vladsch.flexmark.util.options.DataKey<Boolean> NO_FILE_EOL
public static final com.vladsch.flexmark.util.options.DataKey<Boolean> TIMED
public static final com.vladsch.flexmark.util.options.DataKey<Integer> TIMED_ITERATIONS
public static final com.vladsch.flexmark.util.options.DataKey<Boolean> EMBED_TIMED
public static final com.vladsch.flexmark.util.options.DataKey<String> INCLUDED_DOCUMENT
public static final com.vladsch.flexmark.util.options.DataKey<String> SOURCE_PREFIX
public static final com.vladsch.flexmark.util.options.DataKey<String> SOURCE_SUFFIX
public static final com.vladsch.flexmark.util.options.DataKey<String> SOURCE_INDENT
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 com.vladsch.flexmark.IParse adjustParserForInclusion(com.vladsch.flexmark.IParse parserWithOptions,
com.vladsch.flexmark.ast.Document includedDocument)
protected boolean useActualHtml()
public static com.vladsch.flexmark.util.sequence.BasedSequence stripIndent(com.vladsch.flexmark.util.sequence.BasedSequence input,
CharSequence sourceIndent)
protected void assertRendering(String source, String expectedHtml, String optionsSet)
protected void assertRenderingAst(String source, String expectedHtml, String expectedAst, String optionsSet)
Copyright © 2019. All rights reserved.