/** Test of dateTrans method, of class DefaultCalendar. */ @Test public void testDateTrans_CalendarDate_ClockTime() { int[] cal = {2012, 9, 10}; CalendarDate calendarDate = new DefaultCalendarDate( calendar1, IndeterminateValue.NOW, new SimpleInternationalString("new Era"), cal); Number[] clock = {12, 10, 5.488}; ClockTime clockTime = new DefaultClockTime(calendar1, IndeterminateValue.NOW, clock); JulianDate result = calendar1.dateTrans(calendarDate, clockTime); assertTrue(calendar2.dateTrans(calendarDate, clockTime).equals(result)); }
/** * Test of dateTrans method, of class DefaultCalendar. */ @Test public void testDateTrans_CalendarDate_ClockTime() { int[] cal = {2012, 9, 10}; CalendarDate calendarDate = new DefaultCalendarDate(calendar1, IndeterminateValue.NOW, new SimpleInternationalString("new Era"), cal); Number[] clock = {12, 10, 5.488}; ClockTime clockTime = new DefaultClockTime(calendar1, IndeterminateValue.NOW, clock); JulianDate result = calendar1.dateTrans(calendarDate, clockTime); assertTrue(calendar2.dateTrans(calendarDate, clockTime).equals(result)); }