Search in sources :

Example 1 with EntityRetentionGraph

use of org.onebusaway.gtfs_transformer.factory.EntityRetentionGraph in project onebusaway-gtfs-modules by OneBusAway.

the class EntityRetentionGraphTest method setup.

@Before
public void setup() throws IOException {
    _dao = new GtfsRelationalDaoImpl();
    _graph = new EntityRetentionGraph(_dao);
    GtfsReader reader = new GtfsReader();
    File path = new File(getClass().getResource("/org/onebusaway/gtfs_transformer/testagency").getPath());
    reader.setInputLocation(path);
    reader.setEntityStore(_dao);
    reader.run();
}
Also used : EntityRetentionGraph(org.onebusaway.gtfs_transformer.factory.EntityRetentionGraph) GtfsReader(org.onebusaway.gtfs.serialization.GtfsReader) GtfsRelationalDaoImpl(org.onebusaway.gtfs.impl.GtfsRelationalDaoImpl) File(java.io.File) Before(org.junit.Before)

Aggregations

File (java.io.File)1 Before (org.junit.Before)1 GtfsRelationalDaoImpl (org.onebusaway.gtfs.impl.GtfsRelationalDaoImpl)1 GtfsReader (org.onebusaway.gtfs.serialization.GtfsReader)1 EntityRetentionGraph (org.onebusaway.gtfs_transformer.factory.EntityRetentionGraph)1