keith-turner commented on a change in pull request #1113:
URL: https://github.com/apache/fluo/pull/1113#discussion_r595588466
##########
File path:
modules/integration-tests/src/main/java/org/apache/fluo/integration/client/LoaderExecutorIT.java
##########
@@ -113,4 +139,18 @@ public void testSubmit() throws Exception {
// expected from future
}
}
+
+ @Test
+ public void testSubmitResult() throws Exception {
+
+ LoaderExecutor le = client.newLoaderExecutor();
+ // Each time the CounterLoader is executed, it increments a counter and
makes that value
+ // available
+ // in the returned Future
+ CompletableFuture<Loader> future = le.submit(new CounterLoader());
+ Assert.assertEquals(((CounterLoader)
future.get()).getNewValue().longValue(), 1);
+
+ future = le.submit(new CounterLoader());
Review comment:
This could call the other submit method that takes an id to get coverage
on both.
----------------------------------------------------------------
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]