public interface SpecExampleProcessor
| Modifier and Type | Method and Description |
|---|---|
void |
addFullSpecExample(@NotNull SpecExampleRenderer exampleRenderer,
@NotNull SpecExampleParse exampleParse,
@Nullable com.vladsch.flexmark.util.data.DataHolder exampleOptions,
boolean ignoredTestCase,
@NotNull String html,
@Nullable String ast)
Called by DumpSpecReader for each example when processing full test spec
|
default @NotNull SpecExample |
checkExample(@NotNull SpecExample example)
Allows tests to modify example during reading (DumpSpecReader)
|
@NotNull SpecExampleRenderer |
getSpecExampleRenderer(@NotNull SpecExample example,
@Nullable com.vladsch.flexmark.util.data.DataHolder exampleOptions)
Get spec renderer for an example spec
|
@Nullable com.vladsch.flexmark.util.data.DataHolder |
options(@NotNull String option)
Customize options for an example
|
@Nullable
@Nullable com.vladsch.flexmark.util.data.DataHolder options(@NotNull
@NotNull String option)
option - name of the options set to use@NotNull default @NotNull SpecExample checkExample(@NotNull @NotNull SpecExample example)
example - example as it is in the test or spec file@NotNull @NotNull SpecExampleRenderer getSpecExampleRenderer(@NotNull @NotNull SpecExample example, @Nullable @Nullable com.vladsch.flexmark.util.data.DataHolder exampleOptions)
example - spec exampleexampleOptions - example custom optionsvoid addFullSpecExample(@NotNull
@NotNull SpecExampleRenderer exampleRenderer,
@NotNull
@NotNull SpecExampleParse exampleParse,
@Nullable
@Nullable com.vladsch.flexmark.util.data.DataHolder exampleOptions,
boolean ignoredTestCase,
@NotNull
@NotNull String html,
@Nullable
@Nullable String ast)
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 astCopyright © 2020. All rights reserved.