Class TranslationFormatterSpecTest

    • Field Detail

      • 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: SpecExampleProcessor
        Get spec renderer for an example spec
        Parameters:
        example - spec example
        exampleOptions - example custom options
        Returns:
        spec renderer for given example and options
      • translate

        static java.lang.CharSequence translate​(java.lang.CharSequence text)