Interface CustomStringConversionFixture


  • public interface CustomStringConversionFixture
    A fixture may implement this optional interface to provide customized string conversion functionality, which will be used to convert values returned by the fixture to strings to be displayed in the console or the XML result file. Note that at the moment, a fixture can only influence the conversion of its own results, not the conversion of the expected result given in the test script!
    Author:
    Rene Schneider - initial API and implementation
    • Method Detail

      • convertValueToString

        FormattedString convertValueToString​(java.lang.Object aValue,
                                             java.lang.String aFixtureMethod)
        Converts the given value (which is a result value from a fixture method call) to a String.
        Parameters:
        aValue - the value to convert
        aFixtureMethod - the fixture method name which was called and which returned the value
        Returns:
        the resulting string