Skip to content

Commit cd7607b

Browse files
committed
Suppress Deprecation Warnings in Tests
1 parent 267738c commit cd7607b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

spring-kafka/src/test/java/org/springframework/kafka/streams/KafkaStreamsTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ public class KafkaStreamsTests {
120120
@Autowired
121121
private AtomicBoolean stateChangeCalled;
122122

123+
@SuppressWarnings("deprecation")
123124
@Test
124125
public void testKStreams() throws Exception {
125126
assertThat(this.embeddedKafka.getKafkaServer(0).config().autoCreateTopicsEnable()).isFalse();

spring-kafka/src/test/java/org/springframework/kafka/support/KafkaStreamBrancherTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
class KafkaStreamBrancherTests {
3838

3939
@Test
40-
@SuppressWarnings({ "unchecked", "rawtypes" })
40+
@SuppressWarnings({ "unchecked", "rawtypes", "deprecation" })
4141
void correctConsumersAreCalled() {
4242
Predicate p1 = mock(Predicate.class);
4343
Predicate p2 = mock(Predicate.class);

0 commit comments

Comments
 (0)