Package slash.navigation.base

Examples of slash.navigation.base.ParserResult


    }

    @Test
    public void testSinglePositionFile() throws IOException {
        File source = new File(SAMPLE_PATH + "dilsberg kommandantenhaus.itn");
        ParserResult result = parser.read(source);
        assertNotNull(result);
        assertEquals(Route, result.getTheRoute().getCharacteristics());
        assertEquals(1, result.getTheRoute().getPositionCount());
    }
View Full Code Here


    }

    @Test
    public void testIsNamedByTyre() throws IOException {
        File source = new File(SAMPLE_PATH + "itn_with_tyre.itn");
        ParserResult result = parser.read(source);
        assertNotNull(result);
        assertEquals("Eis essen in Ratzeburg", result.getTheRoute().getName());
    }
View Full Code Here

    }

    @Test
    public void testTomTomRoute5() throws IOException {
        File source = new File(TEST_PATH + "from5.itn");
        ParserResult result = parser.read(source);
        assertNotNull(result);
        BaseRoute<BaseNavigationPosition, BaseNavigationFormat> route = result.getTheRoute();
        checkUmlauts(route);
    }
View Full Code Here

    }

    @Test
    public void testTomTomRoute8() throws IOException {
        File source = new File(TEST_PATH + "from8.itn");
        ParserResult result = parser.read(source);
        assertNotNull(result);
        BaseRoute<BaseNavigationPosition, BaseNavigationFormat> route = result.getTheRoute();
        checkUmlauts(route);
    }
View Full Code Here

    }

    @Test
    public void testTomTomRider2() throws IOException {
        File source = new File(TEST_PATH + "from-rider-2.itn");
        ParserResult result = parser.read(source);
        assertNotNull(result);
        BaseRoute<BaseNavigationPosition, BaseNavigationFormat> route = result.getTheRoute();
        checkPlaceNamesWithUmlauts(route);
    }
View Full Code Here

    }

    @Test
    public void testUrbanRinder() throws IOException {
        File source = new File(TEST_PATH + "from-urban-rider.itn");
        ParserResult result = parser.read(source);
        assertNotNull(result);
        BaseRoute<BaseNavigationPosition, BaseNavigationFormat> route = result.getTheRoute();
        checkPlaceNamesWithUmlauts(route);
    }
View Full Code Here

    }

    @Test
    public void testEliminateNonsenseRoutes() throws IOException {
        File source = new File(SAMPLE_PATH + "Feissneck.rte");
        ParserResult result = parser.read(source);
        assertNotNull(result);
        List<BaseRoute> routes = result.getAllRoutes();
        assertEquals(1, routes.size());
        BaseRoute<BaseNavigationPosition, BaseNavigationFormat> route = result.getTheRoute();
        assertEquals(49, route.getPositionCount());
    }
View Full Code Here

TOP

Related Classes of slash.navigation.base.ParserResult

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.