Skip to content

Commit

Permalink
Updated test based on changed behaviour following recurrence refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
benfortuna committed Dec 12, 2018
1 parent 45ff076 commit e6bf04e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/net/fortuna/ical4j/model/RecurTest.java
Expand Up @@ -542,7 +542,7 @@ public static TestSuite suite() throws ParseException {
Recur recur = new Recur(Recur.DAILY, 10);
recur.setInterval(2);
log.debug(recur.toString());

Calendar cal = Calendar.getInstance();
Date start = new Date(cal.getTime().getTime());
cal.add(Calendar.DAY_OF_WEEK_IN_MONTH, 10);
Expand Down Expand Up @@ -840,7 +840,7 @@ public static TestSuite suite() throws ParseException {
// feb 29 2020 monthly with only valid month by february should return feb 28 2021
recur = new Recur("FREQ=MONTHLY;BYMONTH=2;INTERVAL=1");
suite.addTest(new RecurTest(recur, new DateTime("20200229T000000"),
new DateTime("20200229T000000"), new DateTime("20210228T000000")));
new DateTime("20200229T000000"), new DateTime("20240229T000000")));

// test hitting limit when getting invalid next recurrence
recur = new Recur("FREQ=MONTHLY;BYMONTH=2;BYMONTHDAY=30;INTERVAL=1");
Expand Down

0 comments on commit e6bf04e

Please sign in to comment.