Changeset 11867 in josm for trunk/test/unit/org/CustomMatchers.java
- Timestamp:
- 2017-04-09T16:00:43+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/CustomMatchers.java
r10691 r11867 4 4 import java.awt.geom.Point2D; 5 5 import java.util.Collection; 6 import java.util.Objects; 6 7 import java.util.function.Predicate; 7 8 … … 88 89 */ 89 90 public static Matcher<? super Point2D> is(final Point2D expected) { 90 return new CustomTypeSafeMatcher<Point2D>( "the same Point2D") {91 return new CustomTypeSafeMatcher<Point2D>(Objects.toString(expected)) { 91 92 @Override 92 93 protected boolean matchesSafely(Point2D actual) { … … 102 103 */ 103 104 public static Matcher<? super LatLon> is(final LatLon expected) { 104 return new CustomTypeSafeMatcher<LatLon>( "the same LatLon") {105 return new CustomTypeSafeMatcher<LatLon>(Objects.toString(expected)) { 105 106 @Override 106 107 protected boolean matchesSafely(LatLon actual) { … … 117 118 */ 118 119 public static Matcher<? super EastNorth> is(final EastNorth expected) { 119 return new CustomTypeSafeMatcher<EastNorth>( "the same EastNorth") {120 return new CustomTypeSafeMatcher<EastNorth>(Objects.toString(expected)) { 120 121 @Override 121 122 protected boolean matchesSafely(EastNorth actual) {
Note:
See TracChangeset
for help on using the changeset viewer.