Examples of terminalFor()


Examples of org.opentripplanner.routing.impl.LongDistancePathService.Parser.terminalFor()

        State stopStationState = mock(State.class);
        when(stopStationState.getBackEdge()).thenReturn(mock(StationStopEdge.class));
        when(stopStationState.getVertex()).thenReturn(mock(TransitStation.class));

        try {
            parser.terminalFor(emptyState);
            fail();
        } catch (Throwable throwable) {
            assertEquals(RuntimeException.class, throwable.getClass()); // A back edge must be given
        }
View Full Code Here

Examples of org.opentripplanner.routing.impl.LongDistancePathService.Parser.terminalFor()

            fail();
        } catch (Throwable throwable) {
            assertEquals(RuntimeException.class, throwable.getClass()); // A back edge must be given
        }

        assertEquals(Parser.STREET, parser.terminalFor(streetState));
        assertEquals(Parser.LINK, parser.terminalFor(linkState));
        assertEquals(Parser.STATION, parser.terminalFor(stationState));
        assertEquals(Parser.ONBOARD, parser.terminalFor(onboardState));
        assertEquals(Parser.TRANSFER, parser.terminalFor(transferState));
        assertEquals(Parser.STATION_STOP, parser.terminalFor(stationStopState));
View Full Code Here

Examples of org.opentripplanner.routing.impl.LongDistancePathService.Parser.terminalFor()

        } catch (Throwable throwable) {
            assertEquals(RuntimeException.class, throwable.getClass()); // A back edge must be given
        }

        assertEquals(Parser.STREET, parser.terminalFor(streetState));
        assertEquals(Parser.LINK, parser.terminalFor(linkState));
        assertEquals(Parser.STATION, parser.terminalFor(stationState));
        assertEquals(Parser.ONBOARD, parser.terminalFor(onboardState));
        assertEquals(Parser.TRANSFER, parser.terminalFor(transferState));
        assertEquals(Parser.STATION_STOP, parser.terminalFor(stationStopState));
        assertEquals(Parser.STOP_STATION, parser.terminalFor(stopStationState));
View Full Code Here

Examples of org.opentripplanner.routing.impl.LongDistancePathService.Parser.terminalFor()

            assertEquals(RuntimeException.class, throwable.getClass()); // A back edge must be given
        }

        assertEquals(Parser.STREET, parser.terminalFor(streetState));
        assertEquals(Parser.LINK, parser.terminalFor(linkState));
        assertEquals(Parser.STATION, parser.terminalFor(stationState));
        assertEquals(Parser.ONBOARD, parser.terminalFor(onboardState));
        assertEquals(Parser.TRANSFER, parser.terminalFor(transferState));
        assertEquals(Parser.STATION_STOP, parser.terminalFor(stationStopState));
        assertEquals(Parser.STOP_STATION, parser.terminalFor(stopStationState));
    }
View Full Code Here

Examples of org.opentripplanner.routing.impl.LongDistancePathService.Parser.terminalFor()

        }

        assertEquals(Parser.STREET, parser.terminalFor(streetState));
        assertEquals(Parser.LINK, parser.terminalFor(linkState));
        assertEquals(Parser.STATION, parser.terminalFor(stationState));
        assertEquals(Parser.ONBOARD, parser.terminalFor(onboardState));
        assertEquals(Parser.TRANSFER, parser.terminalFor(transferState));
        assertEquals(Parser.STATION_STOP, parser.terminalFor(stationStopState));
        assertEquals(Parser.STOP_STATION, parser.terminalFor(stopStationState));
    }
View Full Code Here

Examples of org.opentripplanner.routing.impl.LongDistancePathService.Parser.terminalFor()

        assertEquals(Parser.STREET, parser.terminalFor(streetState));
        assertEquals(Parser.LINK, parser.terminalFor(linkState));
        assertEquals(Parser.STATION, parser.terminalFor(stationState));
        assertEquals(Parser.ONBOARD, parser.terminalFor(onboardState));
        assertEquals(Parser.TRANSFER, parser.terminalFor(transferState));
        assertEquals(Parser.STATION_STOP, parser.terminalFor(stationStopState));
        assertEquals(Parser.STOP_STATION, parser.terminalFor(stopStationState));
    }

    @Test
View Full Code Here

Examples of org.opentripplanner.routing.impl.LongDistancePathService.Parser.terminalFor()

        assertEquals(Parser.STREET, parser.terminalFor(streetState));
        assertEquals(Parser.LINK, parser.terminalFor(linkState));
        assertEquals(Parser.STATION, parser.terminalFor(stationState));
        assertEquals(Parser.ONBOARD, parser.terminalFor(onboardState));
        assertEquals(Parser.TRANSFER, parser.terminalFor(transferState));
        assertEquals(Parser.STATION_STOP, parser.terminalFor(stationStopState));
        assertEquals(Parser.STOP_STATION, parser.terminalFor(stopStationState));
    }

    @Test
    public final void testPathParser() {
View Full Code Here

Examples of org.opentripplanner.routing.impl.LongDistancePathService.Parser.terminalFor()

        assertEquals(Parser.LINK, parser.terminalFor(linkState));
        assertEquals(Parser.STATION, parser.terminalFor(stationState));
        assertEquals(Parser.ONBOARD, parser.terminalFor(onboardState));
        assertEquals(Parser.TRANSFER, parser.terminalFor(transferState));
        assertEquals(Parser.STATION_STOP, parser.terminalFor(stationStopState));
        assertEquals(Parser.STOP_STATION, parser.terminalFor(stopStationState));
    }

    @Test
    public final void testPathParser() {
        // Create a long distance path parser
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.