From: Kai Moritz Date: Mon, 25 Mar 2024 21:58:39 +0000 (+0100) Subject: test: GREEN - fix: Removed the unnecessary ``@DirtiesContext`` X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=0e721fd59f2dbd111e167c0c7be3b118e70ee601;p=demos%2Fkafka%2Fchat test: GREEN - fix: Removed the unnecessary ``@DirtiesContext`` * The annotation disturbed the test-execution. * Strangly enough, the annotation disturbed the test-execution only after the refactoring. --- diff --git a/src/test/java/de/juplo/kafka/chat/backend/implementation/AbstractConfigurationIT.java b/src/test/java/de/juplo/kafka/chat/backend/implementation/AbstractConfigurationIT.java index 44194817..139d6604 100644 --- a/src/test/java/de/juplo/kafka/chat/backend/implementation/AbstractConfigurationIT.java +++ b/src/test/java/de/juplo/kafka/chat/backend/implementation/AbstractConfigurationIT.java @@ -12,7 +12,6 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.core.io.Resource; import org.springframework.http.MediaType; -import org.springframework.test.annotation.DirtiesContext; import org.springframework.test.web.reactive.server.WebTestClient; import org.testcontainers.shaded.org.awaitility.Awaitility; import reactor.core.publisher.Flux; @@ -29,7 +28,6 @@ import static org.hamcrest.Matchers.endsWith; @Slf4j -@DirtiesContext public abstract class AbstractConfigurationIT { final static String EXISTING_CHATROOM = "5c73531c-6fc4-426c-adcb-afc5c140a0f7";