use of org.onebusaway.gtfs.model.calendar.LocalizedServiceId in project onebusaway-gtfs-modules by OneBusAway.
the class CalendarServiceImplSyntheticTest method testGetServiceDatesWithinRange01.
@Test
public void testGetServiceDatesWithinRange01() {
Date from = date("2010-02-01 07:00 Pacific Standard Time");
Date to = date("2010-02-01 08:00 Pacific Standard Time");
Map<LocalizedServiceId, List<Date>> result = service.getServiceDatesWithinRange(intervals, from, to);
assertEquals(2, result.size());
List<Date> dates = result.get(lsid1);
assertEquals(1, dates.size());
assertEquals(d1.getAsDate(tz), dates.get(0));
dates = result.get(lsid3);
assertEquals(1, dates.size());
assertEquals(d1.getAsDate(tz), dates.get(0));
}
Aggregations