From ee98f1d825750c86fb159036ff9fc751fee8f7a7 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Thu, 22 Feb 2024 14:24:28 +0100 Subject: [PATCH] test: Simplified `ChatHomeServiceTest` * Removed the unnecessary explicit instantiation of the `ObjectMapper`. --- .../kafka/chat/backend/domain/ChatHomeServiceTest.java | 10 ---------- 1 file changed, 10 deletions(-) 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() { -- 2.20.1