예제 #1
0
  @Before
  public void setup() {
    route = new Route();
    Waypoint wp = new Waypoint("wp1", 10.0, 10.0, 0.5, 0.5);
    wp.setRouteLeg(new RouteLeg(10.0, Heading.RL, 2.0, 2.0));
    route.getWaypoints().add(wp);

    wp = new Waypoint("wp2", 20.0, 20.0, 0.0, 0.5);
    wp.setRouteLeg(new RouteLeg(20.0, Heading.RL, 2.0, 2.0));
    route.getWaypoints().add(wp);

    wp = new Waypoint("wp3", 30.0, 30.0, 0.0, 0.5);
    wp.setRouteLeg(new RouteLeg(30.0, Heading.RL, 2.0, 2.0));
    route.getWaypoints().add(wp);
  }
예제 #2
0
 @Test
 public void testConstruction_FirstWaypointEtas() {
   route.getWaypoints().get(0).setEta(new Date());
   new RouteDecorator(route);
 }