예제 #1
0
 @Test(expectedExceptions = DateTimeException.class)
 public void test_factory_CalendricalObject_invalid_noDerive() {
   Month.from(LocalTime.of(12, 30));
 }
예제 #2
0
 @Test(expectedExceptions = NullPointerException.class)
 public void test_factory_CalendricalObject_null() {
   Month.from((TemporalAccessor) null);
 }
예제 #3
0
 // -----------------------------------------------------------------------
 @Test
 public void test_factory_CalendricalObject() {
   assertEquals(Month.from(LocalDate.of(2011, 6, 6)), JUNE);
 }