Class AbstractTestRunnerCallback

    • Field Detail

      • valueConverter

        @Inject
        protected ValueConverter valueConverter
        The value converter to use.
      • parameterResolver

        @Inject
        protected ParameterResolver parameterResolver
        The parameter resolver to use.
      • variableManager

        @Inject
        protected VariableManager variableManager
        The variable manager to use.
    • Constructor Detail

      • AbstractTestRunnerCallback

        public AbstractTestRunnerCallback()
    • Method Detail

      • convertResultValueToFormattedStringGuarded

        protected FormattedString convertResultValueToFormattedStringGuarded​(java.lang.Object aResultValue,
                                                                             FixtureExecutionResult aResult,
                                                                             boolean aForceIntermediateMapFlag,
                                                                             ConversionContext aConversionContext)
        Converts a result value (that is, a value returned by a fixture during a test or call) to a formatted string. This method uses the fixture instance, if available, to perform the conversion.
        Parameters:
        aResultValue - the result value to convert
        aResult - the execution result which provides access to the fixture instance and method
        aForceIntermediateMapFlag - whether the conversion should force the usage of an intermediate map (useful for bean types)
        aConversionContext - the conversion context to use (null = default)
        Returns:
        the converted string
      • convertResultValueToStringGuarded

        protected java.lang.String convertResultValueToStringGuarded​(java.lang.Object aResultValue,
                                                                     FixtureExecutionResult aResult,
                                                                     boolean aForceIntermediateMapFlag,
                                                                     ConversionContext aConversionContext)
        Converts a result value (that is, a value returned by a fixture during a test or call) to a string. This method uses the fixture instance, if available, to perform the conversion.
        Parameters:
        aResultValue - the result value to convert
        aResult - the execution result which provides access to the fixture instance and method
        aForceIntermediateMapFlag - whether the conversion should force the usage of an intermediate map (useful for bean types)
        aConversionContext - the conversion context to use
        Returns:
        the converted string
      • containsNestedObject

        protected boolean containsNestedObject​(java.lang.Object aValue)
        Determines whether a given ValueOrEnumValueOrOperation contains at least one nested object (or an equivalent map with key-value pairs).
        Parameters:
        aValue - the value to check
        Returns:
        true or false
      • valueToString

        protected java.lang.String valueToString​(java.lang.Object aValue)
        Convert a value to a string intended to be included in the textual output. This most importantly converts UnresolvableVariable instances to a "null" string.
        Parameters:
        aValue - the value to stringify
        Returns:
        the string