use of org.onebusaway.gtfs.services.GtfsDao in project onebusaway-gtfs-modules by OneBusAway.
the class GtfsReaderTest method testBom.
@Test
public void testBom() throws IOException, ParseException, InterruptedException {
MockGtfs mockGtfs = MockGtfs.create();
mockGtfs.putDefaultStopTimes();
mockGtfs.putFile("agency.txt", new File("src/test/resources/org/onebusaway/gtfs/bom-agency.txt"));
GtfsDao dao = processFeed(mockGtfs.getPath(), "1", false);
Agency agency = dao.getAgencyForId("1");
assertEquals("Keolis Rennes", agency.getName());
}
Aggregations