benjamin84 / fest

Automatically exported from code.google.com/p/fest
0 stars 0 forks source link

Add support for Date and Date-Time Specific assertions #132

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
For FEST-Assert, we'd like to have specific support for Date assertions, e.g.:

assertThat(actualDate)
  .isEqualIgnoreTime(expectedDate);

assertThat(actualDate)
  .isBefore(expectedDate);

assertThat(actualDate)
  .isOnOrAfter(expectedDate);

assertThat(actualDate)
  .isOnOrAfter(today)
  .isBefore(todayPlusOneWeek);

Not sure how to best express the last one, but we often need to do those
types of comparisons. I wouldn't want to rewrite all of the date stuff, so
using JODA DateTime or some other fluent mechanism would be nice.

Original issue reported on code.google.com by tedyo...@gmail.com on 17 Apr 2008 at 7:06

GoogleCodeExporter commented 9 years ago
Thanks Ted! Very nice feature :)

-Alex

Original comment by Alex.Rui...@gmail.com on 28 Apr 2008 at 8:46

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Issue migrated to http://kenai.com/jira/browse/FEST-53

Original comment by Alex.Rui...@gmail.com on 16 Feb 2009 at 12:15

GoogleCodeExporter commented 9 years ago
Issue migrated to http://jira.codehaus.org/browse/FEST-63

Original comment by Alex.Rui...@gmail.com on 5 Mar 2009 at 10:35