assertTrue(leg.to.stopId.getId().equals("2109"));
}
public void testBannedStopGroup() throws ParameterException {
// Create StopMatcher instance
StopMatcher stopMatcher = StopMatcher.parse("TriMet:2106,TriMet:65-tc");
// Find stops in graph
Graph graph = Context.getInstance().graph;
Stop stop65_tc = ((TransitStationStop) graph.getVertex("TriMet:65-tc")).getStop();
assertNotNull(stop65_tc);
Stop stop12921 = ((TransitStationStop) graph.getVertex("TriMet:12921")).getStop();
assertNotNull(stop12921);
Stop stop13132 = ((TransitStationStop) graph.getVertex("TriMet:13132")).getStop();
assertNotNull(stop13132);
Stop stop2106 = ((TransitStationStop) graph.getVertex("TriMet:2106")).getStop();
assertNotNull(stop2106);
Stop stop2107 = ((TransitStationStop) graph.getVertex("TriMet:2107")).getStop();
assertNotNull(stop2107);
// Match stop with id 65-tc
assertTrue(stopMatcher.matches(stop65_tc));
// Match stop with id 12921 that has TriMet:65-tc as a parent
assertTrue(stopMatcher.matches(stop12921));
// Match stop with id 13132 that has TriMet:65-tc as a parent
assertTrue(stopMatcher.matches(stop13132));
// Match stop with id 2106
assertTrue(stopMatcher.matches(stop2106));
// Match stop with id 2107
assertFalse(stopMatcher.matches(stop2107));
}