test: Simplified `ChatHomeServiceTest`
authorKai Moritz <kai@juplo.de>
Thu, 22 Feb 2024 13:24:28 +0000 (14:24 +0100)
committerKai Moritz <kai@juplo.de>
Thu, 22 Feb 2024 13:24:28 +0000 (14:24 +0100)
* Removed the unnecessary explicit instantiation of the `ObjectMapper`.

src/test/java/de/juplo/kafka/chat/backend/domain/ChatHomeServiceTest.java

index 2db530e..004c35f 100644 (file)
@@ -1,7 +1,5 @@
 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,14 +77,6 @@ public abstract class ChatHomeServiceTest
 
   static class TestConfiguration
   {
-    @Bean
-    ObjectMapper objectMapper()
-    {
-      ObjectMapper objectMapper = new ObjectMapper();
-      objectMapper.registerModule(new JavaTimeModule());
-      return objectMapper;
-    }
-
     @Bean
     Clock clock()
     {