Top Fields Constructors Methods
com.vladsch.flexmark.test.util

public abstract Class RenderingTestCase

extends Object
implements SpecExampleProcessor
Class Inheritance
All Implemented Interfaces
com.vladsch.flexmark.test.util.SpecExampleProcessor
Known Direct Subclasses
com.vladsch.flexmark.test.util.FullSpecTestCase
Imports
com.vladsch.flexmark.test.util.spec.SpecExample, com.vladsch.flexmark.util.data.DataHolder, .DataKey, .SharedDataKeys, com.vladsch.flexmark.util.misc.Extension, org.jetbrains.annotations.NotNull, .Nullable, org.junit.ComparisonFailure, .Rule, org.junit.rules.ExpectedException, java.util.Collection

Field Summary

Modifier and TypeField and Description
public static final DataKey<Boolean>
public static final DataKey<Collection<Extension>>
public static final DataKey<Boolean>
public static final DataKey<Boolean>
public static final DataKey<String>
public static final DataKey<Collection<Extension>>
public static final DataKey<Boolean>
public static final DataHolder
public static final DataKey<String>
public static final DataKey<String>
public static final DataKey<String>
public ExpectedException
public static final DataKey<Boolean>
public static final DataKey<Integer>
public static final DataKey<Collection<Class<? extends Extension>>>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
addFullSpecExample(@NotNull SpecExampleRenderer
example renderer
exampleRenderer
,
@NotNull SpecExampleParse
example parse state
exampleParse
,
DataHolder
example options
exampleOptions
,
boolean
true if ignored example
ignoredTestCase
,
@NotNull String
html used for comparison to expected html
html
,
@Nullable String
ast used for comparison to expected ast
ast
)

Called when processing full spec test case by DumpSpecReader

public void
addSpecExample(SpecExampleRenderer
renderer used
exampleRenderer
,
SpecExampleParse
parse information
exampleParse
,
DataHolder
example options
exampleOptions
)

Called after processing individual test case

protected final void
protected final void
protected final void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

EMBED_TIMEDback to summary
public static final DataKey<Boolean> EMBED_TIMED
EXTENSIONSback to summary
public static final DataKey<Collection<Extension>> EXTENSIONS
FAILback to summary
public static final DataKey<Boolean> FAIL
IGNOREback to summary
public static final DataKey<Boolean> IGNORE
INCLUDED_DOCUMENTback to summary
public static final DataKey<String> INCLUDED_DOCUMENT
LOAD_EXTENSIONSback to summary
public static final DataKey<Collection<Extension>> LOAD_EXTENSIONS
NO_FILE_EOLback to summary
public static final DataKey<Boolean> NO_FILE_EOL
NO_FILE_EOL_FALSEback to summary
public static final DataHolder NO_FILE_EOL_FALSE
SOURCE_INDENTback to summary
public static final DataKey<String> SOURCE_INDENT
SOURCE_PREFIXback to summary
public static final DataKey<String> SOURCE_PREFIX
SOURCE_SUFFIXback to summary
public static final DataKey<String> SOURCE_SUFFIX
thrownback to summary
public ExpectedException thrown
Annotations
@Rule
TIMEDback to summary
public static final DataKey<Boolean> TIMED
TIMED_ITERATIONSback to summary
public static final DataKey<Integer> TIMED_ITERATIONS
UNLOAD_EXTENSIONSback to summary
public static final DataKey<Collection<Class<? extends Extension>>> UNLOAD_EXTENSIONS

Constructor Detail

RenderingTestCaseback to summary
public RenderingTestCase()

Method Detail

addFullSpecExampleback to summary
public void addFullSpecExample(@NotNull SpecExampleRenderer exampleRenderer, @NotNull SpecExampleParse exampleParse, DataHolder exampleOptions, boolean ignoredTestCase, @NotNull String html, @Nullable String ast)

Called when processing full spec test case by DumpSpecReader

Parameters
exampleRenderer:@NotNull SpecExampleRenderer

example renderer

exampleParse:@NotNull SpecExampleParse

example parse state

exampleOptions:DataHolder

example options

ignoredTestCase:boolean

true if ignored example

html:@NotNull String

html used for comparison to expected html

ast:@Nullable String

ast used for comparison to expected ast

addSpecExampleback to summary
public void addSpecExample(SpecExampleRenderer exampleRenderer, SpecExampleParse exampleParse, DataHolder exampleOptions)

Called after processing individual test case

Parameters
exampleRenderer:SpecExampleRenderer

renderer used

exampleParse:SpecExampleParse

parse information

exampleOptions:DataHolder

example options

assertRenderingback to summary
protected final void assertRendering(@NotNull String source, @NotNull String html)
assertRenderingback to summary
protected final void assertRendering(@NotNull String source, @NotNull String html, @Nullable String ast)
assertRenderingback to summary
protected final void assertRendering(@NotNull SpecExample specExample)