Interface ResultMatcher

  • All Known Implementing Classes:
    BufferResultMatcher, EqualityResultMatcher, NullResultMatcher

    public interface ResultMatcher
    An interface for classes which can determine whether two Results match, within a given tolerance. The matching may also take into account the original input parameters to the geometry method.
    • Method Summary

      All Methods Instance Methods Abstract 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 actual and expected results match well enough for the test to be considered as passed.
    • Method Detail

      • isMatch

        boolean isMatch​(Geometry geom,
                        java.lang.String opName,
                        java.lang.Object[] args,
                        Result actualResult,
                        Result expectedResult,
                        double tolerance)
        Tests whether the actual and expected results match well enough for the test to be considered as passed.
        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 match