Examples of GpxType


Examples of slash.navigation.gpx.binding11.GpxType

    @Test
    public void testAddUser() throws Exception {
        String name = "User " + System.currentTimeMillis();
        String location = routeFeedback.addUser(name, "secret", "First", "Last", "first@last.com");
        assertNotNull(location);
        GpxType gpxType = routeFeedback.fetchGpx(location);
        assertNotNull(gpxType);
        assertEquals(name, gpxType.getMetadata().getName());
        List<Object> anys = gpxType.getMetadata().getExtensions().getAny();
        assertEquals(1, anys.size());
        JAXBElement any = (JAXBElement) anys.get(0);
        UserextensionType extension = (UserextensionType) any.getValue();
        assertEquals("first@last.com", extension.getEmail());
        assertEquals("First", extension.getFirstname());
View Full Code Here

Examples of slash.navigation.gpx.binding11.GpxType

    @Test
    public void testAddUserWithUmlauts() throws Exception {
        String name = "User äöüßÄÖÜ Umlauts " + System.currentTimeMillis();
        String location = routeFeedback.addUser(name, "secretÄÖÜ", "First ÄÖÜ", "Last ÄÖÜ", "first@last.com");
        assertNotNull(location);
        GpxType gpxType = routeFeedback.fetchGpx(location);
        assertNotNull(gpxType);
        assertEquals(name, gpxType.getMetadata().getName());
        List<Object> anys = gpxType.getMetadata().getExtensions().getAny();
        assertEquals(1, anys.size());
        JAXBElement any = (JAXBElement) anys.get(0);
        UserextensionType extension = (UserextensionType) any.getValue();
        assertEquals("first@last.com", extension.getEmail());
        assertEquals("First ÄÖÜ", extension.getFirstname());
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.