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 SpecExampleprotected final @Nullable DataHolderprotected final @NotNull Map<String, DataHolder> Fields inherited from class 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 DataHolderaggregate(@Nullable DataHolder other, @Nullable DataHolder overrides) protected booleanstatic @Nullable DataHolder[]dataHolders(@Nullable DataHolder other, @Nullable DataHolder[] overrides) protected final @NotNull ResourceLocationgetTestData(@NotNull ResourceLocation location) @Nullable DataHolderCustomize 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) voidMethods inherited from class FullSpecTestCase
create, fullTestSpecComplete, fullTestSpecStartingMethods inherited from class RenderingTestCase
addFullSpecExample, addSpecExample, assertRendering, assertRendering, assertRenderingMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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:
compoundSectionsin 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:SpecExampleProcessorCustomize options for an example- Parameters:
option- name of the options set to use- Returns:
- options or null to use default
-
getSpecResourceLocation
- Specified by:
getSpecResourceLocationin classFullSpecTestCase
-
testSpecExample
public void testSpecExample()- Overrides:
testSpecExamplein classFullSpecTestCase
-
getTestData
@NotNull protected static @NotNull List<Object[]> getTestData(@NotNull @NotNull ResourceLocation location)
-