Interface CustomComparatorFixture

  • All Known Subinterfaces:
    CustomComparatorAndConversionFixture

    public interface CustomComparatorFixture
    A custom comparator fixture overrides the default "equals" comparator that is used to compare actual and expected results.
    Author:
    Rene Schneider - initial API and implementation
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      ComparisonResult compareResults​(java.lang.Object anExpectedResult, java.lang.Object aFixtureResult, java.lang.String aMethodName, java.lang.String aPropertyName)
      Compares an expected result with an actual result obtained by calling the respective fixture method.
    • Method Detail

      • compareResults

        ComparisonResult compareResults​(java.lang.Object anExpectedResult,
                                        java.lang.Object aFixtureResult,
                                        java.lang.String aMethodName,
                                        java.lang.String aPropertyName)
        Compares an expected result with an actual result obtained by calling the respective fixture method. In order to differentiate between different fixture methods, the method name is also provided.
        Parameters:
        anExpectedResult - the (converted) result expected by the test script
        aFixtureResult - the actual result obtained by calling the fixture
        aMethodName - the fixture method name
        aPropertyName - the name of the result property to be compared (null if it's the default result)
        Returns:
        true if both results are considered to match, false otherwise