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