use of org.onebusaway.gtfs.impl.calendar.CalendarServiceImpl in project onebusaway-application-modules by camsys.
the class ExtendedCalendarServiceImplTest method before.
@Before
public void before() {
_calendarService = new CalendarServiceImpl();
CalendarServiceData data = new CalendarServiceData();
_calendarService.setData(data);
addServiceDates(data, "sA", new ServiceDate(2010, 9, 10), new ServiceDate(2010, 9, 11));
addServiceDates(data, "sB", new ServiceDate(2010, 9, 11), new ServiceDate(2010, 9, 12));
addServiceDates(data, "sC", new ServiceDate(2010, 9, 12), new ServiceDate(2010, 9, 13));
addServiceDates(data, "sD", new ServiceDate(2010, 9, 13));
interval = new ServiceInterval(time(9, 00), time(9, 05), time(10, 00), time(10, 05));
_transitGraphDao = Mockito.mock(TransitGraphDao.class);
_service = new ExtendedCalendarServiceImpl();
_service.setCalendarService(_calendarService);
_service.setTransitGraphDao(_transitGraphDao);
}
use of org.onebusaway.gtfs.impl.calendar.CalendarServiceImpl in project onebusaway-application-modules by camsys.
the class BlockCalendarServiceImplTest method before.
@Before
public void before() {
_service = new BlockCalendarServiceImpl();
_calendarData = new CalendarServiceData();
_calendarService = new CalendarServiceImpl();
_calendarService.setData(_calendarData);
_extendedCalendarService = new ExtendedCalendarServiceImpl();
_extendedCalendarService.setCalendarService(_calendarService);
_service.setCalendarService(_extendedCalendarService);
}
Aggregations