Skip to content

Commit 19bea7f

Browse files
committed
GH-1621: Test Polishing
Remove mock debugging.
1 parent 1c1edcf commit 19bea7f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

spring-kafka/src/test/java/org/springframework/kafka/listener/ManualNackRecordTxTests.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import static org.mockito.BDDMockito.willAnswer;
2626
import static org.mockito.Mockito.inOrder;
2727
import static org.mockito.Mockito.mock;
28-
import static org.mockito.Mockito.withSettings;
2928

3029
import java.time.Duration;
3130
import java.util.ArrayList;
@@ -219,7 +218,7 @@ public Consumer consumer() {
219218
@SuppressWarnings({ "rawtypes", "unchecked" })
220219
@Bean
221220
Producer producer() {
222-
Producer producer = mock(Producer.class, withSettings().verboseLogging());
221+
Producer producer = mock(Producer.class);
223222
willAnswer(inv -> {
224223
this.commitLatch.countDown();
225224
return null;
@@ -230,16 +229,16 @@ Producer producer() {
230229
@SuppressWarnings("rawtypes")
231230
@Bean
232231
ProducerFactory pf() {
233-
ProducerFactory pf = mock(ProducerFactory.class, withSettings().verboseLogging());
232+
ProducerFactory pf = mock(ProducerFactory.class);
234233
given(pf.createProducer(isNull())).willReturn(producer());
235234
given(pf.transactionCapable()).willReturn(true);
236235
return pf;
237236
}
238237

239-
@SuppressWarnings("rawtypes")
238+
@SuppressWarnings({ "rawtypes", "unchecked" })
240239
@Bean
241240
KafkaTransactionManager tm() {
242-
return new KafkaTransactionManager<>(pf());
241+
return new KafkaTransactionManager(pf());
243242
}
244243

245244
@SuppressWarnings({ "rawtypes", "unchecked" })

0 commit comments

Comments
 (0)