Skip to content

Commit

Permalink
One more unit test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Jan 24, 2024
1 parent 6c56081 commit 842cca1
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import java.util.ArrayList;
import java.util.Collection;

import tools.jackson.core.json.JsonWriteFeature;
import tools.jackson.databind.ObjectMapper;
import tools.jackson.databind.json.JsonMapper;
import tools.jackson.databind.module.SimpleModule;
Expand Down Expand Up @@ -35,6 +36,7 @@ public void testSerialization() throws Exception {

private String serializeWith(LocalDate date, DateTimeFormatter f) throws Exception {
ObjectMapper mapper = JsonMapper.builder()
.disable(JsonWriteFeature.ESCAPE_FORWARD_SLASHES)
.addModule(new SimpleModule()
.addSerializer(new LocalDateSerializer(f)))
.build();
Expand Down

0 comments on commit 842cca1

Please sign in to comment.