Class EqualityResultMatcher

  • All Implemented Interfaces:
    ResultMatcher

    public class EqualityResultMatcher
    extends java.lang.Object
    implements ResultMatcher
    A ResultMatcher which compares result for equality, up to the given tolerance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isMatch​(Geometry geom, java.lang.String opName, java.lang.Object[] args, Result actualResult, Result expectedResult, double tolerance)
      Tests whether the two results are equal within the given tolerance.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EqualityResultMatcher

        public EqualityResultMatcher()
    • Method Detail

      • isMatch

        public boolean isMatch​(Geometry geom,
                               java.lang.String opName,
                               java.lang.Object[] args,
                               Result actualResult,
                               Result expectedResult,
                               double tolerance)
        Tests whether the two results are equal within the given tolerance. The input parameters are not considered.
        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 if the actual and expected results are considered equal