TMP
authorKai Moritz <kai@juplo.de>
Fri, 23 Feb 2024 12:12:04 +0000 (13:12 +0100)
committerKai Moritz <kai@juplo.de>
Fri, 23 Feb 2024 15:13:05 +0000 (16:13 +0100)
src/test/java/de/juplo/kafka/chat/backend/domain/ChatHomeServiceTest.java

index 858d03d..d859b14 100644 (file)
@@ -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()
     {