01004c72ba
Currently the error messages for failing tests in the TimeZoneRoundingTests test suite are hard to read because they usually report the actual end expected date in milliseconds utc (e.g. "Expected: <1414270860000L> but: was <1414270800000L>". This makes failing tests hard to read. This change introduces a new Matcher that can be used for equality checks for long dates but reports the error both as a formated date string according to some time zone and also as the actual long values, so you get messages like "Expected: 2014-10-26T00:01:00.000+03:00 [1414270860000] but: was "2014-10-26T00:00:00.000+03:00 [1414270800000]". Also clean cleaning up some helper methods and generally simplifying a few test cases. Otherwise this change shouldn't affect either the scope of the test or anything about the rounding implementation itself. |
||
---|---|---|
.. | ||
src | ||
build.gradle |