Class NullResultMatcher

  • All Implemented Interfaces:
    ResultMatcher

    public class NullResultMatcher
    extends Object
    implements ResultMatcher
    A ResultMatcher which always passes. This is useful if the expected result of an operation is not known.
    Author:
    mbdavis
    • Constructor Detail

      • NullResultMatcher

        public NullResultMatcher()
    • Method Detail

      • isMatch

        public boolean isMatch​(Geometry geom,
                               String opName,
                               Object[] args,
                               Result actualResult,
                               Result expectedResult,
                               double tolerance)
        Always reports a match.
        Specified by:
        isMatch in interface ResultMatcher
        Parameters:
        geom - the target geometry
        opName - the operation performed
        args - the input arguments to the operation
        actualResult - the actual computed result
        expectedResult - the expected result of the test
        tolerance - the tolerance for the test
        Returns:
        true always