]> juplo.de Git - demos/kafka/chat/commitdiff
test: GREEN - fix: Removed the unnecessary ``@DirtiesContext``
authorKai Moritz <kai@juplo.de>
Mon, 25 Mar 2024 21:58:39 +0000 (22:58 +0100)
committerKai Moritz <kai@juplo.de>
Mon, 25 Mar 2024 22:26:00 +0000 (23:26 +0100)
* The annotation disturbed the test-execution.
* Strangly enough, the annotation disturbed the test-execution only after
  the refactoring.

src/test/java/de/juplo/kafka/chat/backend/implementation/AbstractConfigurationIT.java

index 44194817350e67c115d2cbd040b6f258162be38e..139d660497531ec9256a0aa8d3588fcfa869e603 100644 (file)
@@ -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";