protocols/src/test/java/eu/internetofus/common/protocols/AbstractProtocolITC.java
/**
   * Wait until the task satisfy the predicate.
   *
   * @param vertx       event bus to use.
   * @param testContext context to do the test.
   * @param checkTask   the function that has to be true to the task is on the
   *                    state that is waiting.
   *
   * @return the task that satisfy the predicate.
   */
Wait until the task satisfy the predicate.
@param vertx       event bus to use.
@param testContext context to do the test.
@param checkTask   the function that has to be true to the task is on the
state that is waiting.

@return the task that satisfy the predicate.
Wait until the task satisfy the predicate . @param vertx event bus to use . @param testContext context to do the test . @param checkTask the function that has to be true to the task is on the state that is waiting . @return the task that satisfy the predicate .
protected Future<Task> waitUntilTask(final Vertx vertx, final VertxTestContext testContext,
      final Predicate<Task> checkTask) {
    return this.waitUntil(vertx, testContext,
        () -> WeNetTaskManager.createProxy(vertx).retrieveTask(this.task.id).map(target -> {
          this.task = target;
          return this.task;
        }), checkTask);
  }
protected Future < Task > waitUntilTask ( final Vertx vertx , final VertxTestContext testContext , final Predicate < Task > checkTask ) { return this . waitUntil ( vertx , testContext , ( ) -> WeNetTaskManager . createProxy ( vertx ) . retrieveTask ( this . task . id ) . map ( target -> { this . task = target ; return this . task ; } ) , checkTask ) ; }
Wait until the task satisfy the predicate.
Wait until the task satisfy the predicate .