Github user thvasilo commented on a diff in the pull request:
https://github.com/apache/flink/pull/949#discussion_r36960527
--- Diff:
flink-test-utils/src/main/java/org/apache/flink/test/util/TestBaseUtils.java ---
@@ -451,6 +454,53 @@ protected static File asFile(String path) {
assertEquals(extectedStrings[i], resultStrings[i]);
}
}
+
+ //
--------------------------------------------------------------------------------------------
+ // Comparison methods for tests using sample
+ //
--------------------------------------------------------------------------------------------
+
+ public static <T> void containsResultAsTuples(List<T> result, String
expected) {
+ isExpectedContainsResult(result, expected, true);
+ }
+
+ public static <T> void containsResultAsText(List<T> result, String
expected) {
+ isExpectedContainsResult(result, expected, false);
+ }
+
+ private static <T> void isExpectedContainsResult(List<T> result, String
expected, boolean asTuple) {
--- End diff --
Can we get comments explaining the functionality of this and
`containsResultAsText`?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---