Interface CustomComparatorAndConversionFixture

  • All Superinterfaces:
    CustomComparatorFixture

    public interface CustomComparatorAndConversionFixture
    extends CustomComparatorFixture
    This fixture extends the CustomComparatorFixture by a means to manually determine the target type to which the expected result in a test script is to be converted.
    Author:
    Rene Schneider - initial API and implementation
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.Class<?> determineConversionTargetType​(java.lang.Object aFixtureResult, java.lang.String aMethodName, java.lang.String aPropertyName)
      Returns the type to which the expected result (the data given in the test script) that corresponds to the given fixture result is to be converted.
    • Method Detail

      • determineConversionTargetType

        java.lang.Class<?> determineConversionTargetType​(java.lang.Object aFixtureResult,
                                                         java.lang.String aMethodName,
                                                         java.lang.String aPropertyName)
        Returns the type to which the expected result (the data given in the test script) that corresponds to the given fixture result is to be converted. By default this would be the type of the fixture result, but you may return anything else here if you desire.
        Parameters:
        aFixtureResult - the result value returned by the fixture call
        aMethodName - the fixture method that was called
        aPropertyName - the property name that is to be compared (null if it's the default result)
        Returns: