protocols/src/test/java/eu/internetofus/common/protocols/AbstractProtocolITC.java
/**
   * Create a new instance of the task type to test.
   *
   * @param vertx       event bus to use.
   * @param testContext context to do the test.
   */
Create a new instance of the task type to test.
@param vertx       event bus to use.
@param testContext context to do the test.
Create a new instance of the task type to test . @param vertx event bus to use . @param testContext context to do the test .
@Test
  @Order(4)
  public void shouldCreateTaskType(final Vertx vertx, final VertxTestContext testContext) {
    this.assertLastSuccessfulTestWas(3, testContext);
    var future = this.createTaskTypeForProtocol(vertx, testContext);
    future = future.compose(foundTaskType -> WeNetTaskManager.createProxy(vertx).createTaskType(foundTaskType));
    future.onComplete(testContext.succeeding(createdTaskType -> {
      this.taskType = createdTaskType;
      this.assertSuccessfulCompleted(testContext);
    }));
  }
@ Test @ Order ( 4 ) public void shouldCreateTaskType ( final Vertx vertx , final VertxTestContext testContext ) { this . assertLastSuccessfulTestWas ( 3 , testContext ) ; var future = this . createTaskTypeForProtocol ( vertx , testContext ) ; future = future . compose ( foundTaskType -> WeNetTaskManager . createProxy ( vertx ) . createTaskType ( foundTaskType ) ) ; future . onComplete ( testContext . succeeding ( createdTaskType -> { this . taskType = createdTaskType ; this . assertSuccessfulCompleted ( testContext ) ; } ) ) ; }
Create a new instance of the task type to test.
Create a new instance of the task type to test .