Class RendererSpecTest
java.lang.Object
com.vladsch.flexmark.test.util.RenderingTestCase
com.vladsch.flexmark.test.util.FullSpecTestCase
com.vladsch.flexmark.test.util.ComboSpecTestCase
com.vladsch.flexmark.core.test.util.RendererSpecTest
- All Implemented Interfaces:
SpecExampleProcessor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static DataHolder
private static final Map
<String, DataHolder> Fields inherited from class com.vladsch.flexmark.test.util.ComboSpecTestCase
CUSTOM_OPTION, example, myDefaultOptions
Fields inherited from class com.vladsch.flexmark.test.util.RenderingTestCase
EMBED_TIMED, EXTENSIONS, FAIL, IGNORE, INCLUDED_DOCUMENT, LOAD_EXTENSIONS, NO_FILE_EOL, NO_FILE_EOL_FALSE, SOURCE_INDENT, SOURCE_PREFIX, SOURCE_SUFFIX, thrown, TIMED, TIMED_ITERATIONS, UNLOAD_EXTENSIONS
-
Constructor Summary
ConstructorsConstructorDescriptionRendererSpecTest
(@NotNull SpecExample example, @Nullable Map<String, ? extends DataHolder> optionMap, @Nullable DataHolder... defaultOptions) -
Method Summary
Modifier and TypeMethodDescriptionfinal @NotNull SpecExampleRenderer
getSpecExampleRenderer
(@NotNull SpecExample example, @Nullable DataHolder exampleOptions) Get spec renderer for an example specprotected boolean
Methods inherited from class com.vladsch.flexmark.test.util.ComboSpecTestCase
aggregate, compoundSections, dataHolders, getSpecResourceLocation, getTestData, options, optionsMaps, placementAndSortOptions, placementAndSortOptions, testSpecExample
Methods inherited from class com.vladsch.flexmark.test.util.FullSpecTestCase
create, fullTestSpecComplete, fullTestSpecStarting
Methods inherited from class com.vladsch.flexmark.test.util.RenderingTestCase
addFullSpecExample, addSpecExample, assertRendering, assertRendering, assertRendering
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
addFullSpecExample, checkExample
-
Field Details
-
OPTIONS
-
optionsMap
-
-
Constructor Details
-
RendererSpecTest
public RendererSpecTest(@NotNull @NotNull SpecExample example, @Nullable @Nullable Map<String, ? extends DataHolder> optionMap, @Nullable @Nullable DataHolder... defaultOptions)
-
-
Method Details
-
wantExampleInfo
protected boolean wantExampleInfo()- Returns:
- false to disable example information in spec
-
getSpecExampleRenderer
@NotNull public final @NotNull SpecExampleRenderer getSpecExampleRenderer(@NotNull @NotNull SpecExample example, @Nullable @Nullable DataHolder exampleOptions) Description copied from interface:SpecExampleProcessor
Get spec renderer for an example spec- Parameters:
example
- spec exampleexampleOptions
- example custom options- Returns:
- spec renderer for given example and options
-