| 47 | } |
| 48 | |
| 49 | @Test |
| 50 | public void getLength() { |
| 51 | assertThat(Month.JANUARY.getLength(2012), is(31)); |
| 52 | assertThat(Month.FEBRUARY.getLength(2012), is(29)); |
| 53 | assertThat(Month.FEBRUARY.getLength(1900), is(28)); |
| 54 | assertThat(Month.MARCH.getLength(2012), is(31)); |
| 55 | assertThat(Month.APRIL.getLength(2012), is(30)); |
| 56 | assertThat(Month.MAY.getLength(2012), is(31)); |
| 57 | assertThat(Month.JUNE.getLength(2012), is(30)); |
| 58 | assertThat(Month.JULY.getLength(2012), is(31)); |
| 59 | assertThat(Month.AUGUST.getLength(2012), is(31)); |
| 60 | assertThat(Month.SEPTEMBER.getLength(2012), is(30)); |
| 61 | assertThat(Month.OCTOBER.getLength(2012), is(31)); |
| 62 | assertThat(Month.NOVEMBER.getLength(2012), is(30)); |
| 63 | assertThat(Month.DECEMBER.getLength(2012), is(31)); |
| 64 | } |
| 65 | |
| 66 | @Test |
| 67 | public void next() { |