minor reformatting

This commit is contained in:
Joel Costigliola 2012-07-19 20:38:20 +02:00
parent 15d2773bb2
commit 89e87f91e7
1 changed files with 1 additions and 2 deletions

View File

@ -189,8 +189,7 @@ public class AssertionsWithCustomComparatorExamples extends AbstractAssertionsEx
.isIn("2002-12-01") // ok same year and month
.isNotIn("2002-11-01", "2002-10-01"); // same year but different month
// build date away from today by one day (if we are at the end of the month we subtract one day, otherwise we add
// one)
// build date away from today by one day (if we are at the end of the month we subtract one day, otherwise we add one)
Date oneDayFromTodayInSameMonth = monthOf(tomorrow()) == monthOf(new Date()) ? tomorrow() : yesterday();
assertThat(oneDayFromTodayInSameMonth).usingComparator(yearAndMonthComparator).isToday();
}