File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
spring-kafka/src/test/java/org/springframework/kafka/support/serializer Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 2626import org .springframework .kafka .test .utils .KafkaTestUtils ;
2727
2828import static org .assertj .core .api .Assertions .assertThat ;
29- import static org .assertj .core .api .Assertions .assertThatExceptionOfType ;
29+ import static org .assertj .core .api .Assertions .assertThatIllegalStateException ;
3030
3131/**
3232 * @author Gary Russell
@@ -54,7 +54,7 @@ void test() {
5454 serializer .configure (configs , false );
5555 assertThat (KafkaTestUtils .getPropertyValue (serializer , "stringSerializer.encoding" )).isEqualTo (StandardCharsets .UTF_16 );
5656 assertThat (serializer .serialize ("null" , null )).isNull ();
57- assertThatExceptionOfType ( IllegalStateException . class ).isThrownBy (() -> serializer .serialize ("ex" , 0 ))
57+ assertThatIllegalStateException ( ).isThrownBy (() -> serializer .serialize ("ex" , 0 ))
5858 .withMessage ("This serializer can only handle byte[], Bytes or String values" );
5959 }
6060
You can’t perform that action at this time.
0 commit comments