Ignore:
Timestamp:
2017-04-09T16:00:43+02:00 (7 years ago)
Author:
bastiK
Message:

see #7427 - fix some unit tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/CustomMatchers.java

    r10691 r11867  
    44import java.awt.geom.Point2D;
    55import java.util.Collection;
     6import java.util.Objects;
    67import java.util.function.Predicate;
    78
     
    8889     */
    8990    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)) {
    9192            @Override
    9293            protected boolean matchesSafely(Point2D actual) {
     
    102103     */
    103104    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)) {
    105106            @Override
    106107            protected boolean matchesSafely(LatLon actual) {
     
    117118     */
    118119    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)) {
    120121            @Override
    121122            protected boolean matchesSafely(EastNorth actual) {
Note: See TracChangeset for help on using the changeset viewer.