snuyanzin commented on code in PR #22140:
URL: https://github.com/apache/flink/pull/22140#discussion_r1132136726
##########
flink-test-utils-parent/flink-test-utils-junit/src/main/java/org/apache/flink/core/testutils/FlinkAssertions.java:
##########
@@ -139,4 +143,29 @@ public static Stream<Throwable> chainOfCauses(Throwable
throwable) {
}
return Stream.concat(Stream.of(throwable),
chainOfCauses(throwable.getCause()));
}
+
+ /**
+ * Create assertion for {@link java.util.concurrent.CompletableFuture}.
+ *
+ * @param actual the actual value.
+ * @param <T> the type of the value contained in the {@link
+ * java.util.concurrent.CompletableFuture}.
+ * @return the created assertion object.
+ */
+ public static <T> FlinkCompletableFutureAssert<T> assertThatFuture(
+ CompletableFuture<T> actual) {
+ return new FlinkCompletableFutureAssert<>(actual);
+ }
+
+ /**
+ * Create assertion for {@link java.util.concurrent.CompletableFuture}.
+ *
+ * @param actual the actual value.
+ * @param <T> the type of the value contained in the {@link
+ * java.util.concurrent.CompletableFuture}.
Review Comment:
shouldn't it be `CompletionStage` as well?
```suggestion
* java.util.concurrent.CompletionStage}.
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]