use of com.dtflys.test.model.SubCoordinate in project forest by dromara.
the class TestForestFastjsonConverter method testJavaObjectToMap2.
@Test
public void testJavaObjectToMap2() {
SubCoordinate coordinate = new SubCoordinate("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"));
}
use of com.dtflys.test.model.SubCoordinate in project forest by dromara.
the class TestForestJacksonConverter method testJavaObjectToMap2.
@Test
public void testJavaObjectToMap2() {
SubCoordinate coordinate = new SubCoordinate("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.SubCoordinate in project forest by dromara.
the class TestGsonConverter method testJavaObjectToMap2.
@Test
public void testJavaObjectToMap2() {
SubCoordinate coordinate = new SubCoordinate("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"));
}
Aggregations