Package slash.navigation.base

Examples of slash.navigation.base.ReadWriteTestCallback


        assertEquals("URLMime", mediaLinkType.getMime());
    }

    @Test
    public void testNokiaLandmarkExchangeRoundtrip() throws IOException {
        readWriteRoundtrip(TEST_PATH + "from.lmx", new ReadWriteTestCallback() {
            public void test(ParserResult source, ParserResult target) {
                NokiaLandmarkExchangeRoute sourceWaypoints = (NokiaLandmarkExchangeRoute) source.getAllRoutes().get(0);
                assertEquals(Waypoints, sourceWaypoints.getCharacteristics());
                assertNotNull(sourceWaypoints.getLmx());
                assertEquals(Lmx.class, sourceWaypoints.getLmx().getClass());
View Full Code Here


public class ColumbusV900StandardReadWriteRoundtripIT {

    @Test
    public void testRoundtrip() throws IOException {
        readWriteRoundtrip(TEST_PATH + "from-columbusv900-standard.csv", new ReadWriteTestCallback() {
            public void test(ParserResult source, ParserResult target) {
                SimpleRoute sourceRoute = (SimpleRoute) source.getAllRoutes().get(0);
                SimpleRoute targetRoute = (SimpleRoute) target.getAllRoutes().get(0);
                for (int i = 0; i < sourceRoute.getPositionCount(); i++) {
                    Wgs84Position sourcePosition = (Wgs84Position) sourceRoute.getPosition(i);
View Full Code Here

        assertEquals(value, bs.get(name));
    }

    @Test
    public void testMotorradTourenplanerRoundtrip() throws IOException {
        readWriteRoundtrip(TEST_PATH + "from-mtp0809.bcr", new ReadWriteTestCallback() {
            public void test(ParserResult source, ParserResult target) {
                BcrRoute sourceRoute = (BcrRoute) source.getAllRoutes().get(0);
                checkUnprocessedValue(sourceRoute, CLIENT_TITLE, "EXTRA", "1");
                checkUnprocessedValue(sourceRoute, COORDINATES_TITLE, "PLUS", "2");
                checkUnprocessedValue(sourceRoute, DESCRIPTION_TITLE, "ENCORE", "3");
View Full Code Here

        });
    }

    @Test
    public void testMapAndGuideIntranetRoundtrip() throws IOException {
        readWriteRoundtrip(TEST_PATH + "from-mgintra09.bcr", new ReadWriteTestCallback() {
            public void test(ParserResult source, ParserResult target) {
                BcrRoute sourceRoute = (BcrRoute) source.getAllRoutes().get(0);
                checkUnprocessedValue(sourceRoute, "STAYTIME", "STATION1", "0");
                checkUnprocessedValue(sourceRoute, "STAYTIME", "STATION2", "1");
                BcrRoute targetRoute = (BcrRoute) target.getAllRoutes().get(0);
View Full Code Here

        assertEquals(value, section.get(name));
    }

    @Test
    public void testRoundtrip() throws IOException {
        readWriteRoundtrip(TEST_PATH + "from.ovl", new ReadWriteTestCallback() {
            public void test(ParserResult source, ParserResult target) {
                OvlRoute sourceRoute = (OvlRoute) source.getAllRoutes().get(0);
                checkUnprocessedValue(sourceRoute.getSymbol(), "Extra", "1");
                checkUnprocessedValue(sourceRoute.getOverlay(), "Plus", "2");
                checkUnprocessedValue(sourceRoute.getMapLage(), "Encore", "3");
View Full Code Here

public class ColumbusV900ProfessionalReadWriteRoundtripIT {

    @Test
    public void testRoundtrip() throws IOException {
        readWriteRoundtrip(TEST_PATH + "from-columbusv900-professional.csv", new ReadWriteTestCallback() {
            public void test(ParserResult source, ParserResult target) {
                SimpleRoute sourceRoute = (SimpleRoute) source.getAllRoutes().get(0);
                SimpleRoute targetRoute = (SimpleRoute) target.getAllRoutes().get(0);
                for(int i=0; i < sourceRoute.getPositionCount(); i++) {
                    Wgs84Position sourcePosition = (Wgs84Position) sourceRoute.getPosition(i);
View Full Code Here

        assertEquals(name + " does not contain expected value", value, position.get(name));
    }

    @Test
    public void testRoundtrip() throws IOException {
        readWriteRoundtrip(TEST_PATH + "from.tour", new ReadWriteTestCallback() {
            public void test(ParserResult source, ParserResult target) {
                TourRoute sourceRoute = (TourRoute) source.getAllRoutes().get(0);
                checkUnprocessedValue(sourceRoute.getPositions().get(2), TourFormat.ASSEMBLY, "FalkNavigator");
                checkUnprocessedValue(sourceRoute.getPositions().get(2), TourFormat.CLASS, "FMI.FalkNavigator.DestinationFCGPOI");
                checkUnprocessedValue(sourceRoute.getPositions().get(2), TourFormat.VISITED, "0");
View Full Code Here

public class QstarzQ1000ReadWriteRoundtripIT {

    @Test
    public void testRoundtrip() throws IOException {
        readWriteRoundtrip(TEST_PATH + "from-qstarz-q1000.csv", new ReadWriteTestCallback() {
            public void test(ParserResult source, ParserResult target) {
                SimpleRoute sourceRoute = (SimpleRoute) source.getAllRoutes().get(0);
                SimpleRoute targetRoute = (SimpleRoute) target.getAllRoutes().get(0);
                for(int i=0; i < sourceRoute.getPositionCount(); i++) {
                    Wgs84Position sourcePosition = (Wgs84Position) sourceRoute.getPosition(i);
View Full Code Here

public class Iblue747ReadWriteRoundtripIT {

    @Test
    public void testRoundtrip() throws IOException {
        readWriteRoundtrip(TEST_PATH + "from-iblue747.csv", new ReadWriteTestCallback() {
            public void test(ParserResult source, ParserResult target) {
                SimpleRoute sourceRoute = (SimpleRoute) source.getAllRoutes().get(0);
                SimpleRoute targetRoute = (SimpleRoute) target.getAllRoutes().get(0);
                for (int i = 0; i < sourceRoute.getPositionCount(); i++) {
                    Wgs84Position sourcePosition = (Wgs84Position) sourceRoute.getPosition(i);
View Full Code Here

import static slash.navigation.itn.TomTomRouteFormatIT.checkUmlauts;

public class TomTomRouteReadWriteRoundtripIT {
    @Test
    public void testTomTom5Roundtrip() throws IOException {
        readWriteRoundtrip(TEST_PATH + "from5.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

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.