Skip to content
Snippets Groups Projects
Commit b2a5870a authored by Filip Fabry's avatar Filip Fabry
Browse files

fixup! Write tests for user-service

parent ca3564e3
No related branches found
No related tags found
1 merge request!11Write tests for user-service
...@@ -14,9 +14,7 @@ public class JsonConvertor { ...@@ -14,9 +14,7 @@ public class JsonConvertor {
private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper() private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper()
.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES) .disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES)
.registerModule(new JavaTimeModule()) .registerModule(new JavaTimeModule());
.setPropertyNamingStrategy(new PropertyNamingStrategies.SnakeCaseStrategy())
.setSerializationInclusion(JsonInclude.Include.NON_NULL);
public static <T> T convertJsonToObject(String serializedObject, Class<T> objectClass) throws public static <T> T convertJsonToObject(String serializedObject, Class<T> objectClass) throws
JsonProcessingException { JsonProcessingException {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment