use of com.robo4j.socket.http.dto.PathAttributeDTO in project robo4j by Robo4J.
the class ReflectUtilTests method createJsonByObjectMapCollection.
@Test
void createJsonByObjectMapCollection() {
Throwable exception = assertThrows(RoboReflectException.class, () -> {
Map<String, PathAttributeDTO> map = new HashMap<>();
map.put("one", new PathAttributeDTO("one1", "1"));
map.put("two", new PathAttributeDTO("two2", "2"));
ReflectUtils.createJson(map);
});
assertTrue(exception.getMessage().startsWith("object getter value"));
}
Aggregations