Examples of PositionDocument


Examples of xint.test.PositionDocument

    public IntTests(String name) { super(name); }
    public static Test suite() { return new TestSuite(IntTests.class); }

    public static void testLatLong() throws Exception
    {
        PositionDocument doc = PositionDocument.Factory.parse(
          "<p:position xmlns:p='java:int.test'><p:lat>43</p:lat><p:lon>020</p:lon></p:position>");
        Assert.assertEquals(43, doc.getPosition().getLat());
        Assert.assertEquals(20, doc.getPosition().getLon());
        doc.getPosition().xgetLat().set("07");
        doc.getPosition().xgetLon().set("040");
        Assert.assertEquals(7, doc.getPosition().getLat());
        Assert.assertEquals(40, doc.getPosition().getLon());
        doc.getPosition().setLat((short)22);
    }
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.