File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
fluss-client/src/test/java/com/alibaba/fluss/client/utils Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 4747import java .util .Objects ;
4848
4949import static org .assertj .core .api .Assertions .assertThat ;
50+ import static org .assertj .core .api .Assertions .assertThatThrownBy ;
5051
5152/** Tests for {@link ConverterUtils}. */
5253public class ConverterUtilsTest extends ClientToServerITCaseBase {
@@ -191,10 +192,8 @@ public void testPartialPojo() {
191192 .build ();
192193
193194 // Expect an IllegalArgumentException when creating a converter with a field not in the POJO
194- assertThat (
195- org .junit .jupiter .api .Assertions .assertThrows (
196- IllegalArgumentException .class ,
197- () -> ConverterUtils .getConverter (PartialTestPojo .class , rowType )))
195+ assertThatThrownBy (() -> ConverterUtils .getConverter (PartialTestPojo .class , rowType ))
196+ .isInstanceOf (IllegalArgumentException .class )
198197 .hasMessageContaining ("Field 'extraField' not found in POJO class" );
199198 }
200199
You can’t perform that action at this time.
0 commit comments