• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package org.geojson.jackson;
2 
3 import org.geojson.LngLatAlt;
4 import org.junit.Assert;
5 import org.junit.Test;
6 
7 import com.fasterxml.jackson.databind.ObjectMapper;
8 
9 public class LngLatAltSerializerTest
10 {
11 
12     @Test
testSerialization()13     public void testSerialization() throws Exception
14     {
15         LngLatAlt position = new LngLatAlt(49.43245, 52.42345, 120.34626);
16         String correctJson = "[49.43245,52.42345,120.34626]";
17         String producedJson = new ObjectMapper().writeValueAsString(position);
18         Assert.assertEquals(correctJson, producedJson);
19     }
20 }
21