Skip to content

Commit 38efb1d

Browse files
committed
fix checkstyle issue
1 parent 4e36a68 commit 38efb1d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

fluss-client/src/test/java/com/alibaba/fluss/client/utils/ConverterUtilsTest.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
import java.util.Objects;
4848

4949
import static org.assertj.core.api.Assertions.assertThat;
50+
import static org.assertj.core.api.Assertions.assertThatThrownBy;
5051

5152
/** Tests for {@link ConverterUtils}. */
5253
public 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

0 commit comments

Comments
 (0)