Package slash.navigation.base

Examples of slash.navigation.base.ReadWriteTestCallback


        });
    }

    @Test
    public void testTomTom8Roundtrip() throws IOException {
        readWriteRoundtrip(TEST_PATH + "from8.itn", new ReadWriteTestCallback() {
            public void test(ParserResult source, ParserResult target) {
                BaseRoute<BaseNavigationPosition, BaseNavigationFormat> sourceRoute = source.getTheRoute();
                checkUmlauts(sourceRoute);

                BaseRoute<BaseNavigationPosition, BaseNavigationFormat> targetRoute = target.getTheRoute();
View Full Code Here


        });
    }

    @Test
    public void testRider2Roundtrip() throws IOException {
        readWriteRoundtrip(TEST_PATH + "from-rider-2.itn", new ReadWriteTestCallback() {
            public void test(ParserResult source, ParserResult target) {
                BaseRoute<BaseNavigationPosition, BaseNavigationFormat> sourceRoute = source.getTheRoute();
                checkPlaceNamesWithUmlauts(sourceRoute);

                BaseRoute<BaseNavigationPosition, BaseNavigationFormat> targetRoute = target.getTheRoute();
View Full Code Here

        });
    }

    @Test
    public void testUrbanRiderRoundtrip() throws IOException {
        readWriteRoundtrip(TEST_PATH + "from-urban-rider.itn", new ReadWriteTestCallback() {
            public void test(ParserResult source, ParserResult target) {
                BaseRoute<BaseNavigationPosition, BaseNavigationFormat> sourceRoute = source.getTheRoute();
                checkPlaceNamesWithUmlauts(sourceRoute);

                BaseRoute<BaseNavigationPosition, BaseNavigationFormat> targetRoute = target.getTheRoute();
View Full Code Here

        }
    }

    @Test
    public void testGpx10Roundtrip() throws IOException {
        readWriteRoundtrip(TEST_PATH + "from10.gpx", new ReadWriteTestCallback() {
            public void test(ParserResult source, ParserResult target) {
                GpxRoute sourceWaypoints = (GpxRoute) source.getAllRoutes().get(0);
                assertEquals(Waypoints, sourceWaypoints.getCharacteristics());
                assertNotNull(sourceWaypoints.getOrigins());
                assertEquals(1, sourceWaypoints.getOrigins().size());
View Full Code Here

        });
    }

    @Test
    public void testGpx10TrkRoundtrip() throws IOException {
        readWriteRoundtrip(TEST_PATH + "from10trk.gpx", new ReadWriteTestCallback() {
            public void test(ParserResult source, ParserResult target) {
                GpxRoute sourceWaypoints = (GpxRoute) source.getAllRoutes().get(0);
                assertNotNull(sourceWaypoints.getOrigins());
                assertEquals(1, sourceWaypoints.getOrigins().size());
                checkUnprocessed(sourceWaypoints.getOrigin(Gpx.class));
View Full Code Here

        assertEquals("22.75", speed.getTextContent());
    }

    @Test
    public void testGpx11Roundtrip() throws IOException {
        readWriteRoundtrip(TEST_PATH + "from11.gpx", new ReadWriteTestCallback() {
            public void test(ParserResult source, ParserResult target) {
                GpxRoute sourceWaypoints = (GpxRoute) source.getAllRoutes().get(0);
                assertEquals(Waypoints, sourceWaypoints.getCharacteristics());
                assertNotNull(sourceWaypoints.getOrigins());
                assertEquals(1, sourceWaypoints.getOrigins().size());
View Full Code Here

        });
    }

    @Test
    public void testGpx11TrkRoundtrip() throws IOException {
        readWriteRoundtrip(TEST_PATH + "from11trk.gpx", new ReadWriteTestCallback() {
            public void test(ParserResult source, ParserResult target) {
                GpxRoute sourceWaypoints = (GpxRoute) source.getAllRoutes().get(0);
                assertNotNull(sourceWaypoints.getOrigins());
                assertEquals(1, sourceWaypoints.getOrigins().size());
                checkUnprocessed(sourceWaypoints.getOrigin(GpxType.class));
View Full Code Here

TOP

Related Classes of slash.navigation.base.ReadWriteTestCallback

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.