Jiabao-Sun commented on code in PR #24603: URL: https://github.com/apache/flink/pull/24603#discussion_r1547534597
########## flink-core/src/test/java/org/apache/flink/api/java/typeutils/PojoTypeExtractionTest.java: ########## @@ -260,99 +262,98 @@ private void checkWCPojoAsserts(TypeInformation<?> typeInfo) { "complex.word.f2" }; int[] positions = {9, 1, 0, 2, 3, 4, 5, 6, 7, 8}; - Assert.assertEquals(fields.length, positions.length); + assertThat(positions.length).isEqualTo(fields.length); for (int i = 0; i < fields.length; i++) { pojoType.getFlatFields(fields[i], 0, ffd); - Assert.assertEquals("Too many keys returned", 1, ffd.size()); - Assert.assertEquals( - "position of field " + fields[i] + " wrong", - positions[i], - ffd.get(0).getPosition()); + assertThat(ffd.size()).as("Too many keys returned").isOne(); Review Comment: ```suggestion assertThat(ffd).as("Too many keys returned").hasSize(1); ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org