public void testSetLongitudeAndLatitudeAndElevation() { BcrPosition position = format.parsePosition("TOWN,210945416161", "2115508,9081108", null); assertEquals(2115508, position.getX()); assertEquals(9081108, position.getY()); assertEquals(55.52, position.getElevation()); position.setLongitude(19.02522); position.setLatitude(62.963395); position.setElevation(14.42); assertEquals(2115508, position.getX()); assertEquals(9081108, position.getY()); assertEquals(19.02522, position.getLongitude()); assertEquals(62.96339, position.getLatitude()); assertEquals(14.42, position.getElevation()); position.setLongitude(null); position.setLatitude(null); position.setElevation(null); assertNull(position.getX()); assertNull(position.getY()); assertNull(position.getLongitude()); assertNull(position.getLatitude()); assertNull(position.getElevation()); }