package fr.oltruong.teamag.utils;


public class CalendarUtilsTest
{

}

@@ -32,41 +32,1185 @@
 s;%0A%0A
-%0Apublic class CalendarUtilsTest%0A%7B
+import static org.fest.assertions.Assertions.assertThat;%0A%0Aimport java.util.Calendar;%0A%0Aimport org.junit.Test;%0A%0Apublic class CalendarUtilsTest %7B%0A%0A    @Test%0A    public void testGetFirstDayOfMonth() %7B%0A%0A        Calendar cal = Calendar.getInstance();%0A        assertThat(CalendarUtils.getFirstDayOfMonth(cal).get(Calendar.DAY_OF_MONTH)).isEqualTo(1);%0A    %7D%0A%0A    @Test%0A    public void testGetFirstDayOfMonth_null() %7B%0A        assertThat(CalendarUtils.getFirstDayOfMonth(null)).isNull();%0A    %7D%0A%0A    @Test%0A    public void testGetNextDay() %7B%0A        Calendar cal = Calendar.getInstance();%0A        assertThat(CalendarUtils.getNextDay(cal).get(Calendar.DAY_OF_YEAR)).isEqualTo((cal.get(Calendar.DAY_OF_YEAR) + 1));%0A    %7D%0A%0A    @Test%0A    public void testGetNextDay_null() %7B%0A        assertThat(CalendarUtils.getNextDay(null)).isNull();%0A    %7D%0A%0A    @Test%0A    public void testGetPreviousMonth() %7B%0A        Calendar cal = Calendar.getInstance();%0A        assertThat(CalendarUtils.getPreviousMonth(cal).get(Calendar.MONTH)).isEqualTo((cal.get(Calendar.MONTH) - 1));%0A    %7D%0A%0A    @Test%0A    public void testGetPreviousMonth_null() %7B%0A        assertThat(CalendarUtils.getPreviousMonth(null)).isNull();%0A    %7D
 %0A%0A%7D%0A

Add CalendarUT