Package slash.navigation.itn

Examples of slash.navigation.itn.TomTom5RouteFormat


    @SuppressWarnings("UnusedDeclaration")
    public TomTomRoute asTomTom5RouteFormat() {
        if (getFormat() instanceof TomTom5RouteFormat)
            return (TomTomRoute) this;
        return asTomTomRouteFormat(new TomTom5RouteFormat());
    }
View Full Code Here


        convertRoundtrip(TEST_PATH + "from11trk.gpx", new Gpx11Format(), new NmeaFormat());
    }

    @Test
    public void testConvertGpxToTomTomRoute() throws IOException {
        convertRoundtrip(TEST_PATH + "from11.gpx", new Gpx11Format(), new TomTom5RouteFormat());
        convertRoundtrip(TEST_PATH + "from11trk.gpx", new Gpx11Format(), new TomTom8RouteFormat());
    }
View Full Code Here

        convertRoundtrip(TEST_PATH + "from.nmea", new NmeaFormat(), new TomTom8RouteFormat());
    }

    @Test
    public void testConvertLogposTrackToColumbusV900() throws IOException {
        convertRoundtrip(SAMPLE_PATH + "logpos1.itn", new TomTom5RouteFormat(), new ColumbusV900StandardFormat());
    }
View Full Code Here

        convertRoundtrip(SAMPLE_PATH + "logpos1.itn", new TomTom5RouteFormat(), new ColumbusV900StandardFormat());
    }

    @Test
    public void testConvertLogposTrackToGoPalTrack() throws IOException {
        convertRoundtrip(SAMPLE_PATH + "logpos1.itn", new TomTom5RouteFormat(), new GoPalTrackFormat());
    }
View Full Code Here

        convertRoundtrip(SAMPLE_PATH + "logpos1.itn", new TomTom5RouteFormat(), new GoPalTrackFormat());
    }

    @Test
    public void testConvertLogposTrackToGpsTuner() throws IOException {
        convertRoundtrip(SAMPLE_PATH + "logpos1.itn", new TomTom5RouteFormat(), new GpsTunerFormat());
    }
View Full Code Here

        convertRoundtrip(SAMPLE_PATH + "logpos1.itn", new TomTom5RouteFormat(), new GpsTunerFormat());
    }

    @Test
    public void testConvertLogposTrackToGpx() throws IOException {
        convertRoundtrip(SAMPLE_PATH + "logpos1.itn", new TomTom5RouteFormat(), new Gpx10Format());
        convertRoundtrip(SAMPLE_PATH + "logpos2.itn", new TomTom5RouteFormat(), new Gpx11Format());
    }
View Full Code Here

        convertRoundtrip(SAMPLE_PATH + "logpos2.itn", new TomTom5RouteFormat(), new Gpx11Format());
    }

    @Test
    public void testConvertPilogTrackToNmea() throws IOException {
        convertRoundtrip(SAMPLE_PATH + "pilog1.itn", new TomTom5RouteFormat(), new NmeaFormat());
    }
View Full Code Here

        ParserResult result1 = parser.read(new File(TEST_PATH + "from.itn"), formats);
        assertFalse(result1.isSuccessful());
        formats.add(new TomTom8RouteFormat());
        ParserResult result2 = parser.read(new File(TEST_PATH + "from.itn"), formats);
        assertFalse(result2.isSuccessful());
        formats.add(new TomTom5RouteFormat());
        ParserResult result3 = parser.read(new File(TEST_PATH + "from.itn"), formats);
        assertTrue(result3.isSuccessful());
        assertEquals(result3.getFormat().getClass(), TomTom5RouteFormat.class);
    }
View Full Code Here

    @Test
    public void testCurrentStartDateForTomTomRouteWithDate() throws Exception {
        FileInputStream source = new FileInputStream(new File(SAMPLE_PATH + "startdate-with-date.itn"));
        Calendar startDate = Calendar.getInstance();
        ParserContext<TomTomRoute> context = new ParserContextImpl<TomTomRoute>();
        new TomTom5RouteFormat().read(source, fromCalendar(startDate), context);
        checkPositions(context.getRoutes());
    }
View Full Code Here

    public void testFileStartDateForTomTomRouteWithoutDate() throws Exception {
        File source = new File(SAMPLE_PATH + "startdate-without-date.itn");
        Calendar startDate = Calendar.getInstance();
        startDate.setTimeInMillis(source.lastModified());
        ParserContext<TomTomRoute> context = new ParserContextImpl<TomTomRoute>();
        new TomTom5RouteFormat().read(new FileInputStream(source), fromCalendar(startDate), context);
        List<TomTomRoute> routes = context.getRoutes();
        checkPositionsWithDate(routes, startDate);
    }
View Full Code Here

TOP

Related Classes of slash.navigation.itn.TomTom5RouteFormat

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.