package kata.eom;

public class TestEomUtil {
}

@@ -16,33 +16,2247 @@
 m;%0A%0A
-public class TestEomUtil %7B
+import org.junit.Test;%0A%0Aimport java.util.Calendar;%0Aimport java.util.Date;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0Apublic class TestEomUtil %7B%0A%0A    @Test%0A    public void test135781012 () %7B%0A        Calendar calendar = Calendar.getInstance();%0A        calendar.set(Calendar.YEAR, 2013);%0A        calendar.set(Calendar.MONTH, 0);%0A        calendar.set(Calendar.DATE, 12);%0A        Date eom = EomUtil.getEndDateOfMonth(calendar.getTime());%0A        Calendar target = Calendar.getInstance();%0A        target.setTime(eom);%0A        assertEquals(2013, target.get(Calendar.YEAR));%0A        assertEquals(0, target.get(Calendar.MONTH));%0A        assertEquals(31, target.get(Calendar.DATE));%0A    %7D%0A%0A    public void test46911() %7B%0A%0A        Calendar calendar = Calendar.getInstance();%0A        calendar.set(Calendar.YEAR, 2013);%0A        calendar.set(Calendar.MONTH, 3);%0A        calendar.set(Calendar.DATE, 15);%0A        Date eom = EomUtil.getEndDateOfMonth(calendar.getTime());%0A        Calendar target = Calendar.getInstance();%0A        target.setTime(eom);%0A        assertEquals(2013, target.get(Calendar.YEAR));%0A        assertEquals(3, target.get(Calendar.MONTH));%0A        assertEquals(30, target.get(Calendar.DATE));%0A    %7D%0A%0A    public void test2() %7B%0A        Calendar calendar = Calendar.getInstance();%0A        calendar.set(Calendar.YEAR, 2013);%0A        calendar.set(Calendar.MONTH, 1);%0A        calendar.set(Calendar.DATE, 15);%0A        Date eom = EomUtil.getEndDateOfMonth(calendar.getTime());%0A        Calendar target = Calendar.getInstance();%0A        target.setTime(eom);%0A        assertEquals(2013, target.get(Calendar.YEAR));%0A        assertEquals(1, target.get(Calendar.MONTH));%0A        assertEquals(28, target.get(Calendar.DATE));%0A    %7D%0A%0A    public void testLeap2() %7B%0A        Calendar calendar = Calendar.getInstance();%0A        calendar.set(Calendar.YEAR, 2013);%0A        calendar.set(Calendar.MONTH, 1);%0A        calendar.set(Calendar.DATE, 15);%0A        Date eom = EomUtil.getEndDateOfMonth(calendar.getTime());%0A        Calendar target = Calendar.getInstance();%0A        target.setTime(eom);%0A        assertEquals(2012, target.get(Calendar.YEAR));%0A        assertEquals(1, target.get(Calendar.MONTH));%0A        assertEquals(29, target.get(Calendar.DATE));%0A    %7D%0A
 %0A%7D%0A

Initialize tests.