File tree 1 file changed +2
-3
lines changed
log4j-appender/src/test/java/org/apache/kafka/log4jappender
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 36
36
import java .util .concurrent .Future ;
37
37
import java .util .concurrent .TimeoutException ;
38
38
39
- import static org .junit .jupiter .api .Assertions .assertDoesNotThrow ;
40
39
import static org .junit .jupiter .api .Assertions .assertEquals ;
41
40
import static org .junit .jupiter .api .Assertions .assertThrows ;
42
41
@@ -140,15 +139,15 @@ public void testSyncSendWithoutIgnoringExceptionsShouldNotThrowException() {
140
139
MockKafkaLog4jAppender mockKafkaLog4jAppender = getMockKafkaLog4jAppender ();
141
140
replaceProducerWithMocked (mockKafkaLog4jAppender , true );
142
141
143
- assertDoesNotThrow (() -> logger .error (getMessage (0 ) ));
142
+ logger .error (getMessage (0 ));
144
143
}
145
144
146
145
@ Test
147
146
public void testRealProducerConfigWithSyncSendShouldNotThrowException () {
148
147
Properties props = getLog4jConfigWithRealProducer (true );
149
148
PropertyConfigurator .configure (props );
150
149
151
- assertDoesNotThrow (() -> logger .error (getMessage (0 ) ));
150
+ logger .error (getMessage (0 ));
152
151
}
153
152
154
153
@ Test
You can’t perform that action at this time.
0 commit comments