Class TranslationFormatterSpecTest
- 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.FormatterTranslationSpecTestBase
-
- com.vladsch.flexmark.core.test.util.TranslationFormatterSpecTest
-
- All Implemented Interfaces:
SpecExampleProcessor
public abstract class TranslationFormatterSpecTest extends FormatterTranslationSpecTestBase
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classTranslationFormatterSpecTest.TranslationFormatter
-
Field Summary
Fields Modifier and Type Field Description static DataKey<java.lang.Boolean>AST_DETAILSstatic DataKey<java.lang.Boolean>DETAILSprivate static DataHolderOPTIONSprivate static java.util.Map<java.lang.String,DataHolder>optionsMapprivate static booleanSHOW_INTERMEDIATEprivate static booleanSHOW_INTERMEDIATE_AST-
Fields inherited from class com.vladsch.flexmark.core.test.util.FormatterTranslationSpecTestBase
EDIT_OP, EDIT_OP_CHAR, SHOW_LINE_RANGES, SKIP_IGNORED_TESTS
-
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
Constructors Constructor Description TranslationFormatterSpecTest(@NotNull SpecExample example, @Nullable java.util.Map<java.lang.String,? extends DataHolder> optionMap, @Nullable DataHolder... defaultOptions)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private ParsergetParser(@Nullable DataHolder OPTIONS)private IRendergetRenderer(@Nullable DataHolder OPTIONS)@NotNull SpecExampleRenderergetSpecExampleRenderer(@NotNull SpecExample example, @Nullable DataHolder exampleOptions)Get spec renderer for an example spec(package private) static java.lang.CharSequencetranslate(java.lang.CharSequence text)-
Methods inherited from class com.vladsch.flexmark.core.test.util.FormatterTranslationSpecTestBase
firstIndentOption, indentOption, marginOption
-
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 Detail
-
SHOW_INTERMEDIATE
private static final boolean SHOW_INTERMEDIATE
- See Also:
- Constant Field Values
-
SHOW_INTERMEDIATE_AST
private static final boolean SHOW_INTERMEDIATE_AST
- See Also:
- Constant Field Values
-
DETAILS
public static final DataKey<java.lang.Boolean> DETAILS
-
AST_DETAILS
public static final DataKey<java.lang.Boolean> AST_DETAILS
-
OPTIONS
private static final DataHolder OPTIONS
-
optionsMap
private static final java.util.Map<java.lang.String,DataHolder> optionsMap
-
-
Constructor Detail
-
TranslationFormatterSpecTest
public TranslationFormatterSpecTest(@NotNull @NotNull SpecExample example, @Nullable @Nullable java.util.Map<java.lang.String,? extends DataHolder> optionMap, @Nullable @Nullable DataHolder... defaultOptions)
-
-
Method Detail
-
getParser
private Parser getParser(@Nullable @Nullable DataHolder OPTIONS)
-
getRenderer
private IRender getRenderer(@Nullable @Nullable DataHolder OPTIONS)
-
getSpecExampleRenderer
@NotNull public final @NotNull SpecExampleRenderer getSpecExampleRenderer(@NotNull @NotNull SpecExample example, @Nullable @Nullable DataHolder exampleOptions)
Description copied from interface:SpecExampleProcessorGet spec renderer for an example spec- Parameters:
example- spec exampleexampleOptions- example custom options- Returns:
- spec renderer for given example and options
-
translate
static java.lang.CharSequence translate(java.lang.CharSequence text)
-
-