alpreu commented on code in PR #19660:
URL: https://github.com/apache/flink/pull/19660#discussion_r872383249


##########
flink-connectors/flink-connector-cassandra/src/test/java/org/apache/flink/streaming/connectors/cassandra/CassandraConnectorITCase.java:
##########
@@ -723,11 +721,11 @@ public void testCassandraBatchPojoFormat() throws 
Exception {
 
         final List<? extends Pojo> pojos = 
writePojosWithOutputFormat(annotatedPojoClass);
         ResultSet rs = session.execute(injectTableName(SELECT_DATA_QUERY));
-        Assert.assertEquals(20, rs.all().size());
+        assertThat(rs.all()).hasSize(20);
 
         final List<? extends Pojo> result = 
readPojosWithInputFormat(annotatedPojoClass);
-        Assert.assertEquals(20, result.size());
-        assertThat(result, samePropertyValuesAs(pojos));
+        assertThat(result).hasSize(20);
+        assertThat(result).satisfies(matching(samePropertyValuesAs(pojos)));

Review Comment:
   I actually noticed just now that this method can also take a configuration 
that allows us to ignore the order :)



-- 
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

Reply via email to