Пример #1
0
 public void testSetInto_Object_Chronology2() throws Exception {
   MutableInterval m = new MutableInterval(1000L, 2000L, GJChronology.getInstance());
   NullConverter.INSTANCE.setInto(m, null, CopticChronology.getInstance());
   assertEquals(TEST_TIME_NOW, m.getStartMillis());
   assertEquals(TEST_TIME_NOW, m.getEndMillis());
   assertEquals(CopticChronology.getInstance(), m.getChronology());
 }
Пример #2
0
 public void testSetInto_Object() throws Exception {
   MutablePeriod m = new MutablePeriod(PeriodType.millis());
   NullConverter.INSTANCE.setInto(m, null, null);
   assertEquals(0L, m.getMillis());
 }