// ----------------------------------------------------------------------- @Test public void test_factory_int_singleton() { for (int i = 1; i <= MAX_LENGTH; i++) { Month test = Month.of(i); assertEquals(test.getValue(), i); } }
@Test(expectedExceptions = DateTimeException.class) public void test_factory_int_tooLow() { Month.of(0); }
@Test(dataProvider = "minus") public void test_minus_long(int base, long amount, int expected) { assertEquals(Month.of(base).minus(amount), Month.of(expected)); }