From: Kai Moritz Date: Fri, 23 Feb 2024 12:12:04 +0000 (+0100) Subject: TMP X-Git-Tag: rebase--2024-02-23--16-28~4 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=c22309673a302e6aa92bdd84f3b894cd60d1b27d;p=demos%2Fkafka%2Fchat TMP --- diff --git a/src/test/java/de/juplo/kafka/chat/backend/domain/ChatHomeServiceTest.java b/src/test/java/de/juplo/kafka/chat/backend/domain/ChatHomeServiceTest.java index 858d03d3..d859b141 100644 --- a/src/test/java/de/juplo/kafka/chat/backend/domain/ChatHomeServiceTest.java +++ b/src/test/java/de/juplo/kafka/chat/backend/domain/ChatHomeServiceTest.java @@ -1,5 +1,7 @@ package de.juplo.kafka.chat.backend.domain; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import de.juplo.kafka.chat.backend.ChatBackendProperties; import de.juplo.kafka.chat.backend.domain.exceptions.LoadInProgressException; import de.juplo.kafka.chat.backend.domain.exceptions.UnknownChatroomException; @@ -79,6 +81,14 @@ public abstract class ChatHomeServiceTest static class TestConfiguration { + @Bean + ObjectMapper objectMapper() + { + ObjectMapper objectMapper = new ObjectMapper(); + objectMapper.registerModule(new JavaTimeModule()); + return objectMapper; + } + @Bean Clock clock() {