Skip to content

Commit

Permalink
Add @DirtiesContext to a couple Kafka tests
Browse files Browse the repository at this point in the history
  • Loading branch information
artembilan committed Sep 7, 2022
1 parent f36181b commit 96d3b00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
import org.springframework.messaging.PollableChannel;
import org.springframework.messaging.SubscribableChannel;
import org.springframework.messaging.support.GenericMessage;
import org.springframework.test.annotation.DirtiesContext;
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;

/**
Expand All @@ -60,6 +61,7 @@
*
*/
@SpringJUnitConfig
@DirtiesContext
public class ChannelTests {

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import org.springframework.kafka.core.ConsumerFactory;
import org.springframework.kafka.core.KafkaOperations;
import org.springframework.kafka.listener.ConsumerProperties;
import org.springframework.test.annotation.DirtiesContext;
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;

/**
Expand All @@ -44,6 +45,7 @@
*
*/
@SpringJUnitConfig
@DirtiesContext
public class ChannelParserTests {

@Autowired
Expand Down

0 comments on commit 96d3b00

Please sign in to comment.