Package com.vladsch.flexmark.test.util
Interface SpecExampleProcessor
-
- All Known Implementing Classes:
ComboSpecTestCase,FormatterSpecTest,FormatterTranslationSpecTestBase,FullSpecTestCase,RendererSpecTest,RenderingTestCase,TranslationFormatterSpecTest
public interface SpecExampleProcessor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidaddFullSpecExample(@NotNull SpecExampleRenderer exampleRenderer, @NotNull SpecExampleParse exampleParse, @Nullable DataHolder exampleOptions, boolean ignoredTestCase, @NotNull java.lang.String html, @Nullable java.lang.String ast)Called by DumpSpecReader for each example when processing full test specdefault @NotNull SpecExamplecheckExample(@NotNull SpecExample example)Allows tests to modify example during reading (DumpSpecReader)@NotNull SpecExampleRenderergetSpecExampleRenderer(@NotNull SpecExample example, @Nullable DataHolder exampleOptions)Get spec renderer for an example spec@Nullable DataHolderoptions(@NotNull java.lang.String option)Customize options for an example
-
-
-
Method Detail
-
options
@Nullable @Nullable DataHolder options(@NotNull @NotNull java.lang.String option)
Customize options for an example- Parameters:
option- name of the options set to use- Returns:
- options or null to use default
-
checkExample
@NotNull default @NotNull SpecExample checkExample(@NotNull @NotNull SpecExample example)
Allows tests to modify example during reading (DumpSpecReader)- Parameters:
example- example as it is in the test or spec file- Returns:
- modified example if needed
-
getSpecExampleRenderer
@NotNull @NotNull SpecExampleRenderer getSpecExampleRenderer(@NotNull @NotNull SpecExample example, @Nullable @Nullable DataHolder exampleOptions)
Get spec renderer for an example spec- Parameters:
example- spec exampleexampleOptions- example custom options- Returns:
- spec renderer for given example and options
-
addFullSpecExample
void addFullSpecExample(@NotNull @NotNull SpecExampleRenderer exampleRenderer, @NotNull @NotNull SpecExampleParse exampleParse, @Nullable @Nullable DataHolder exampleOptions, boolean ignoredTestCase, @NotNull @NotNull java.lang.String html, @Nullable @Nullable java.lang.String ast)Called by DumpSpecReader for each example when processing full test spec- 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
-
-