Examples of GoPalTrackFormat


Examples of slash.navigation.gopal.GoPalTrackFormat

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

Examples of slash.navigation.gopal.GoPalTrackFormat

    @Test
    public void testCurrentStartDateForGopalTrackWithoutDate() throws Exception {
        FileInputStream source = new FileInputStream(new File(SAMPLE_PATH + "startdate-without-date.trk"));
        Calendar startDate = Calendar.getInstance();
        ParserContext<SimpleRoute> context = new ParserContextImpl<SimpleRoute>();
        new GoPalTrackFormat().read(source, fromCalendar(startDate), context);
        List<SimpleRoute> routes = context.getRoutes();
        checkPositionsWithDate(routes, startDate);
    }
View Full Code Here

Examples of slash.navigation.gopal.GoPalTrackFormat

            Calendar calendar = Calendar.getInstance();
            calendar.setTimeInMillis(source.lastModified());
            startDate = fromCalendar(calendar);
        }
        ParserContext<SimpleRoute> context = new ParserContextImpl<SimpleRoute>();
        new GoPalTrackFormat().read(new FileInputStream(source), startDate, context);
        return context.getRoutes();
    }
View Full Code Here

Examples of slash.navigation.gopal.GoPalTrackFormat

        convertRoundtrip(TEST_PATH + "from.tef", new TourExchangeFormat(), new GoPal7RouteFormat());
    }

    @Test
    public void testConvertTourExchangeToGoPalTrack() throws IOException {
        convertRoundtrip(TEST_PATH + "from.tef", new TourExchangeFormat(), new GoPalTrackFormat());
    }
View Full Code Here

Examples of slash.navigation.gopal.GoPalTrackFormat

    @Test
    public void testConvertViaMichelinToGoPal() throws IOException {
        convertRoundtrip(TEST_PATH + "from-poi.xvm", new ViaMichelinFormat(), new GoPal3RouteFormat());
        convertRoundtrip(TEST_PATH + "from-poi.xvm", new ViaMichelinFormat(), new GoPal5RouteFormat());
        convertRoundtrip(TEST_PATH + "from-itinerary.xvm", new ViaMichelinFormat(), new GoPalTrackFormat());
    }
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.