use of com.dtflys.test.model.Coordinate in project forest by dromara.
the class TestForestJacksonConverter method testJavaObjectToMap.
@Test
public void testJavaObjectToMap() {
Coordinate coordinate = new Coordinate("11.11111", "22.22222");
ForestJacksonConverter forestJacksonConverter = new ForestJacksonConverter();
Map map = forestJacksonConverter.convertObjectToMap(coordinate);
assertNotNull(map);
assertEquals("11.11111", map.get("longitude"));
assertEquals("22.22222", map.get("latitude"));
}
use of com.dtflys.test.model.Coordinate in project forest by dromara.
the class TestGsonConverter method testJavaObjectToMap.
@Test
public void testJavaObjectToMap() {
Coordinate coordinate = new Coordinate("11.11111", "22.22222");
ForestGsonConverter gsonConverter = new ForestGsonConverter();
Map map = gsonConverter.convertObjectToMap(coordinate);
assertNotNull(map);
assertEquals("11.11111", map.get("longitude"));
assertEquals("22.22222", map.get("latitude"));
}
use of com.dtflys.test.model.Coordinate in project forest by dromara.
the class TestForestFastjsonConverter method testJavaObjectToMap.
@Test
public void testJavaObjectToMap() {
Coordinate coordinate = new Coordinate("11.11111", "22.22222");
ForestFastjsonConverter forestFastjsonConverter = new ForestFastjsonConverter();
Map map = forestFastjsonConverter.convertObjectToMap(coordinate);
assertNotNull(map);
assertEquals("11.11111", map.get("longitude"));
assertEquals("22.22222", map.get("latitude"));
}
Aggregations