Package com.vladsch.flexmark.test.util
Class ComboSpecTestCase
java.lang.Object
com.vladsch.flexmark.test.util.RenderingTestCase
com.vladsch.flexmark.test.util.FullSpecTestCase
com.vladsch.flexmark.test.util.ComboSpecTestCase
- All Implemented Interfaces:
SpecExampleProcessor
- Direct Known Subclasses:
FormatterTranslationSpecTestBase
,RendererSpecTest
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DataKey
<BiFunction<String, String, DataHolder>> protected final @NotNull SpecExample
protected final @Nullable DataHolder
protected final @NotNull Map
<String, DataHolder> 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
ConstructorsConstructorDescriptionComboSpecTestCase
(@NotNull SpecExample example, @Nullable Map<String, ? extends DataHolder> optionMap, @Nullable DataHolder... defaultOptions) -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull DataHolder
aggregate
(@Nullable DataHolder other, @Nullable DataHolder overrides) protected boolean
static @Nullable DataHolder[]
dataHolders
(@Nullable DataHolder other, @Nullable DataHolder[] overrides) protected final @NotNull ResourceLocation
getTestData
(@NotNull ResourceLocation location) @Nullable DataHolder
Customize options for an examplestatic @Nullable Map
<String, ? extends DataHolder> optionsMaps
(@Nullable Map<String, ? extends DataHolder> other, @Nullable Map<String, ? extends DataHolder> overrides) static @NotNull Map
<String, DataHolder> placementAndSortOptions
(@Nullable DataKey<KeepType> keepTypeDataKey, @Nullable DataKey<ElementPlacement> placementDataKey, @Nullable DataKey<ElementPlacementSort> sortDataKey) static @NotNull Map
<String, DataHolder> placementAndSortOptions
(DataKey<ElementPlacement> placementDataKey, DataKey<ElementPlacementSort> sortDataKey) void
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, getSpecExampleRenderer
-
Field Details
-
CUSTOM_OPTION
-
example
-
optionsMap
-
myDefaultOptions
-
-
Constructor Details
-
ComboSpecTestCase
public ComboSpecTestCase(@NotNull @NotNull SpecExample example, @Nullable @Nullable Map<String, ? extends DataHolder> optionMap, @Nullable @Nullable DataHolder... defaultOptions)
-
-
Method Details
-
placementAndSortOptions
@NotNull public static @NotNull Map<String,DataHolder> placementAndSortOptions(DataKey<ElementPlacement> placementDataKey, DataKey<ElementPlacementSort> sortDataKey) -
placementAndSortOptions
@NotNull public static @NotNull Map<String,DataHolder> placementAndSortOptions(@Nullable @Nullable DataKey<KeepType> keepTypeDataKey, @Nullable @Nullable DataKey<ElementPlacement> placementDataKey, @Nullable @Nullable DataKey<ElementPlacementSort> sortDataKey) -
compoundSections
protected boolean compoundSections()- Overrides:
compoundSections
in classFullSpecTestCase
-
optionsMaps
@Nullable public static @Nullable Map<String,? extends DataHolder> optionsMaps(@Nullable @Nullable Map<String, ? extends DataHolder> other, @Nullable @Nullable Map<String, ? extends DataHolder> overrides) -
dataHolders
@Nullable public static @Nullable DataHolder[] dataHolders(@Nullable @Nullable DataHolder other, @Nullable @Nullable DataHolder[] overrides) -
aggregate
@NotNull public static @NotNull DataHolder aggregate(@Nullable @Nullable DataHolder other, @Nullable @Nullable DataHolder overrides) -
options
Description copied from interface:SpecExampleProcessor
Customize options for an example- Parameters:
option
- name of the options set to use- Returns:
- options or null to use default
-
getSpecResourceLocation
- Specified by:
getSpecResourceLocation
in classFullSpecTestCase
-
testSpecExample
public void testSpecExample()- Overrides:
testSpecExample
in classFullSpecTestCase
-
getTestData
@NotNull protected static @NotNull List<Object[]> getTestData(@NotNull @NotNull ResourceLocation location)
-