Class EqualityResultMatcher
- java.lang.Object
-
- org.locationtech.jtstest.testrunner.EqualityResultMatcher
-
- All Implemented Interfaces:
ResultMatcher
public class EqualityResultMatcher extends java.lang.Object implements ResultMatcher
AResultMatcher
which compares result for equality, up to the given tolerance.
-
-
Constructor Summary
Constructors Constructor Description EqualityResultMatcher()
-
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.
-
-
-
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 interfaceResultMatcher
- Parameters:
geom
- the target geometryopName
- the operation performedargs
- the input arguments to the operationactualResult
- the actual computed resultexpectedResult
- the expected result of the testtolerance
- the tolerance for the test- Returns:
- true if the actual and expected results are considered equal
-
-