kowshik commented on a change in pull request #10218:
URL: https://github.com/apache/kafka/pull/10218#discussion_r610491754
##########
File path: clients/src/test/java/org/apache/kafka/test/TestUtils.java
##########
@@ -535,4 +536,46 @@ public static void setFieldValue(Object obj, String
fieldName, Object value) thr
field.setAccessible(true);
field.set(obj, value);
}
+
+ /**
+ * Returns true if both iterators have same elements in the same order.
+ *
+ * @param iterator1 first iterator.
+ * @param iterator2 second iterator.
+ * @param <T> type of element in the iterators.
+ */
+ public static <T> boolean sameElementsWithOrder(Iterator<T> iterator1,
Review comment:
Sounds good
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]