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 Detail

      • compareResults

        ComparisonResult compareResults​(Object anExpectedResult,
                                        Object aFixtureResult,
                                        String aMethodName,
                                        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