From: Kai Moritz Date: Thu, 22 Feb 2024 13:24:28 +0000 (+0100) Subject: test: Simplified `ChatHomeServiceTest` X-Git-Tag: rebase--2024-02-23--16-28~26 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=ee98f1d825750c86fb159036ff9fc751fee8f7a7;p=demos%2Fkafka%2Fchat test: Simplified `ChatHomeServiceTest` * Removed the unnecessary explicit instantiation of the `ObjectMapper`. --- 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 2db530e3..004c35f7 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,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() {