protocols/src/test/java/eu/internetofus/common/protocols/AbstractProtocolITC.java
/**
   * Check that a task is created.
   *
   *
   * @param source      task to create.
   * @param vertx       event bus to use.
   * @param testContext context to do the test.
   * @param checkTask   this predicate is true when the created task has the
   *                    expected values.
   *
   * @return the future created task.
   *
   * @see #waitUntilTask(Vertx, VertxTestContext, Predicate)
   */
Check that a task is created.
@param source      task to create.
@param vertx       event bus to use.
@param testContext context to do the test.
@param checkTask   this predicate is true when the created task has the
expected values.

@return the future created task.


Check that a task is created . @param source task to create . @param vertx event bus to use . @param testContext context to do the test . @param checkTask this predicate is true when the created task has the expected values . @return the future created task .
protected Future<Task> waitUntilTaskCreated(@NotNull final Task source, @NotNull final Vertx vertx,
      @NotNull final VertxTestContext testContext, @NotNull final Predicate<Task> checkTask) {
    return WeNetTaskManager.createProxy(vertx).createTask(source).compose(target -> {
      this.task = target;
      return this.waitUntilTask(vertx, testContext, checkTask);
    });
  }
protected Future < Task > waitUntilTaskCreated ( @ NotNull final Task source , @ NotNull final Vertx vertx , @ NotNull final VertxTestContext testContext , @ NotNull final Predicate < Task > checkTask ) { return WeNetTaskManager . createProxy ( vertx ) . createTask ( source ) . compose ( target -> { this . task = target ; return this . waitUntilTask ( vertx , testContext , checkTask ) ; } ) ; }
Check that a task is created.
Check that a task is created .