Package com.vladsch.flexmark.test.util
Class RenderingTestCase
java.lang.Object
com.vladsch.flexmark.test.util.RenderingTestCase
- All Implemented Interfaces:
SpecExampleProcessor
- Direct Known Subclasses:
FullSpecTestCase
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DataKey<Collection<Extension>>
static final DataKey<Collection<Extension>>
static final DataHolder
org.junit.rules.ExpectedException
static final DataKey<Collection<Class<? extends Extension>>>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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 DumpSpecReadervoid
addSpecExample
(SpecExampleRenderer exampleRenderer, SpecExampleParse exampleParse, DataHolder exampleOptions) Called after processing individual test caseprotected final void
assertRendering
(@NotNull SpecExample specExample) protected final void
assertRendering
(@NotNull String source, @NotNull String html) protected final void
assertRendering
(@NotNull String source, @NotNull String html, @Nullable String ast) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vladsch.flexmark.test.util.SpecExampleProcessor
checkExample, getSpecExampleRenderer, options
-
Field Details
-
IGNORE
-
FAIL
-
NO_FILE_EOL
-
TIMED_ITERATIONS
-
EMBED_TIMED
-
TIMED
-
INCLUDED_DOCUMENT
-
SOURCE_PREFIX
-
SOURCE_SUFFIX
-
SOURCE_INDENT
-
NO_FILE_EOL_FALSE
-
UNLOAD_EXTENSIONS
-
LOAD_EXTENSIONS
-
EXTENSIONS
-
thrown
public org.junit.rules.ExpectedException thrown
-
-
Constructor Details
-
RenderingTestCase
public RenderingTestCase()
-
-
Method Details
-
addSpecExample
public void addSpecExample(SpecExampleRenderer exampleRenderer, SpecExampleParse exampleParse, DataHolder exampleOptions) Called after processing individual test case- Parameters:
exampleRenderer
- renderer usedexampleParse
- parse informationexampleOptions
- example options
-
addFullSpecExample
public void addFullSpecExample(@NotNull @NotNull SpecExampleRenderer exampleRenderer, @NotNull @NotNull SpecExampleParse exampleParse, DataHolder exampleOptions, boolean ignoredTestCase, @NotNull @NotNull String html, @Nullable @Nullable String ast) Called when processing full spec test case by DumpSpecReader- Specified by:
addFullSpecExample
in interfaceSpecExampleProcessor
- Parameters:
exampleRenderer
- example rendererexampleParse
- example parse stateexampleOptions
- example optionsignoredTestCase
- true if ignored examplehtml
- html used for comparison to expected htmlast
- ast used for comparison to expected ast
-
assertRendering
-
assertRendering
-
assertRendering
-