@Test public void testSetBasis() throws ParseException { Collection<CalendarEra> result = calendar1.getBasis(); int[] calendarDate = {1, 1, 1}; CalendarEra calendarEra = new DefaultCalendarEra(new SimpleInternationalString("Babylonian calendar"), new SimpleInternationalString("Ascension of Nebuchadnezzar II to the throne of Babylon"), new DefaultCalendarDate(calendar1, null, null, calendarDate), new DefaultJulianDate(calendar1, null, 1721423.25), new DefaultPeriod(new DefaultInstant(new DefaultPosition(new DefaultJulianDate(calendar1, null, 2087769))), new DefaultInstant(new DefaultPosition(new DefaultJulianDate(calendar1, null, 2299160))))); Collection<CalendarEra> collection = new ArrayList<CalendarEra>(); collection.add(calendarEra); ((DefaultCalendar) calendar1).setBasis(collection); assertFalse(calendar1.getBasis().equals(result)); }
public void setBasis(Collection<CalendarEra> basis) { this.basis = basis; }
DefaultCalendar extends DefaultTemporalReferenceSystem implements Calendar { public void setBasis(Collection<CalendarEra> basis) { this.basis = basis; } }
DefaultCalendar extends DefaultTemporalReferenceSystem implements Calendar { public void setBasis(Collection<CalendarEra> basis) { this.basis = basis; } DefaultCalendar(ReferenceIdentifier name, Extent domainOfValidity); }
DefaultCalendar extends DefaultTemporalReferenceSystem implements Calendar { public void setBasis(Collection<CalendarEra> basis) { this.basis = basis; } DefaultCalendar(ReferenceIdentifier name, Extent domainOfValidity); JulianDate dateTrans(CalendarDate calDate, ClockTime time); JulianDate dateTrans(DateAndTime dateAndTime); CalendarDate julTrans(JulianDate jdt); Collection<CalendarEra> getBasis(); Clock getClock(); void setBasis(Collection<CalendarEra> basis); void setClock(Clock clock); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString(); }
DefaultCalendar extends DefaultTemporalReferenceSystem implements Calendar { public void setBasis(Collection<CalendarEra> basis) { this.basis = basis; } DefaultCalendar(ReferenceIdentifier name, Extent domainOfValidity); JulianDate dateTrans(CalendarDate calDate, ClockTime time); JulianDate dateTrans(DateAndTime dateAndTime); CalendarDate julTrans(JulianDate jdt); Collection<CalendarEra> getBasis(); Clock getClock(); void setBasis(Collection<CalendarEra> basis); void setClock(Clock clock); @Override boolean equals(final Object object); @Override int hashCode(); @Override String toString();  }