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 DataHolderorg.junit.rules.ExpectedExceptionstatic final DataKey<Collection<Class<? extends Extension>>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFullSpecExample(@NotNull SpecExampleRenderer exampleRenderer, @NotNull SpecExampleParse exampleParse, DataHolder exampleOptions, boolean ignoredTestCase, @NotNull String html, @Nullable String ast) Called when processing full spec test case by DumpSpecReadervoidaddSpecExample(SpecExampleRenderer exampleRenderer, SpecExampleParse exampleParse, DataHolder exampleOptions) Called after processing individual test caseprotected final voidassertRendering(@NotNull SpecExample specExample) protected final voidassertRendering(@NotNull String source, @NotNull String html) protected final voidassertRendering(@NotNull String source, @NotNull String html, @Nullable String ast) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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:
addFullSpecExamplein 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
-