Package org.onebusaway.transit_data_federation.bundle.tasks

Examples of org.onebusaway.transit_data_federation.bundle.tasks.ShapePointHelper


    shapePointsFactory.addPoint(47.673840100841396, -122.38756621771239);
    shapePointsFactory.addPoint(47.668667271970484, -122.38756621771239);
    shapePointsFactory.addPoint(47.66868172192725, -122.3661729186096);
    ShapePoints shapePoints = shapePointsFactory.create();

    ShapePointHelper shapePointHelper = Mockito.mock(ShapePointHelper.class);
    Mockito.when(shapePointHelper.getShapePointsForShapeId(shapeId)).thenReturn(
        shapePoints);

    TripEntriesFactory factory = new TripEntriesFactory();
    factory.setGtfsDao(gtfsDao);
    factory.setShapePointHelper(shapePointHelper);
View Full Code Here


    /****
     * ShapePointsService
     ****/

    ShapePointHelper shapePointService = Mockito.mock(ShapePointHelper.class);

    ShapePointsFactory shapePointsFactory = new ShapePointsFactory();
    shapePointsFactory.addPoint(0, 0);

    Mockito.when(
        shapePointService.getShapePointsForShapeId((AgencyAndId) Mockito.any())).thenReturn(
        shapePointsFactory.create());

    /****
     * Factory
     ****/
 
View Full Code Here

TOP

Related Classes of org.onebusaway.transit_data_federation.bundle.tasks.ShapePointHelper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.