Skip to content

Commit 99a41a7

Browse files
eviltestereviltester
authored andcommitted
set minimal days in week as well
1 parent b841d0a commit 99a41a7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

source/src/test/java/com/javafortesters/chap017_datestimes/exercises/DateTimeExercisesTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ public void experimentWithCalendarConstants(){
7979
// week of month depends on first day of week
8080
// some places use SUNDAY as first day
8181
// set to MONDAY for our calculation
82+
// and control Minimdal Days in First Week
8283
cal.setFirstDayOfWeek(Calendar.MONDAY);
84+
cal.setMinimalDaysInFirstWeek(6);
8385

8486
assertThat(cal.get(Calendar.DAY_OF_WEEK), is(1));
8587
assertThat(cal.get(Calendar.DAY_OF_WEEK), is(Calendar.SUNDAY));

0 commit comments

Comments
 (0)