eXparity / hamcrest-date

A Java library which provides a suite hamcrest matchers for matching dates, times, and moments in time
BSD 3-Clause "New" or "Revised" License
70 stars 11 forks source link

Wrong mismatch message - IsSameDay #14

Closed Buesing-Sebastian closed 8 years ago

Buesing-Sebastian commented 8 years ago

If u use the IsSameDay Matcher and you get a mismatch, you get the wrong mismatch message:

mismatchDesc.appendText("date is " + describer.describe(expected.unwrap()));

should be

mismatchDesc.appendText("date is " + describer.describe(actual.unwrap()));

https://github.com/eXparity/hamcrest-date/blob/master/src/main/java/org/exparity/hamcrest/date/core/IsSameDay.java

stewbis commented 8 years ago

Hi, Thanks for reporting the bug. I'll get it fixed up and rolled into the next release. Thanks, Stewart

stewbis commented 8 years ago

Hi Sebastian, Issue is resolved in version 2.0.1. Regards, Stewart