assertEquals(1, step1.alerts.size());
assertEquals("NE", step1.alerts.get(0).alertHeaderText.getSomeTranslation());
}
public void testIntermediate() throws Exception {
Vertex v1 = getVertexByCrossStreets("NW 10TH AVE", "W BURNSIDE ST");
Vertex v2 = getVertexByCrossStreets("SE 82ND AVE", "SE ASH ST").getOutgoing().iterator()
.next().getToVertex();
Vertex v3 = getVertexByCrossStreets("NE 21ST AVE", "NE MASON ST").getOutgoing().iterator()
.next().getToVertex();
Vertex v4 = getVertexByCrossStreets("SE 92ND AVE", "SE FLAVEL ST");
Vertex[] vertices = { v1, v3, v2, v4 };
assertNotNull(v1);
assertNotNull(v2);
assertNotNull(v3);
assertNotNull(v4);
TestPlanner planner = new TestPlanner("portland", v1.getLabel(), v4.getLabel(),
Arrays.asList(v2.getLabel(), v3.getLabel()));
List<GraphPath> paths = planner.getPaths();
assertTrue(paths.size() > 0);
GraphPath path = paths.get(0);