components/src/test/java/eu/internetofus/common/components/models/TaskTransactionTest.java
/**
   * A task transaction without a bad task type.
   *
   * @param vertx       event bus to use.
   * @param testContext test context to use.
   *
   * @see TaskTransaction#validate(WeNetValidateContext)
   */
A task transaction without a bad task type.
@param vertx       event bus to use.
@param testContext test context to use.


A task transaction without a bad task type . @param vertx event bus to use . @param testContext test context to use .
@Test
  public void shouldTaskTransactionBeNotValidWithUndefinedTaskType(final Vertx vertx,
      final VertxTestContext testContext) {
    this.createModelExample(1, vertx, testContext)
        .onComplete(testContext.succeeding(model -> WeNetTaskManager.createProxy(vertx).retrieveTask(model.taskId)
            .compose(task -> WeNetTaskManager.createProxy(vertx).deleteTaskType(task.taskTypeId))
            .onComplete(testContext.succeeding(empty -> assertIsNotValid(model, "taskId@taskTypeId",
                new WeNetValidateContext("codePrefix", vertx), testContext)))));
  }
@ Test public void shouldTaskTransactionBeNotValidWithUndefinedTaskType ( final Vertx vertx , final VertxTestContext testContext ) { this . createModelExample ( 1 , vertx , testContext ) . onComplete ( testContext . succeeding ( model -> WeNetTaskManager . createProxy ( vertx ) . retrieveTask ( model . taskId ) . compose ( task -> WeNetTaskManager . createProxy ( vertx ) . deleteTaskType ( task . taskTypeId ) ) . onComplete ( testContext . succeeding ( empty -> assertIsNotValid ( model , "taskId@taskTypeId" , new WeNetValidateContext ( "codePrefix" , vertx ) , testContext ) ) ) ) ) ; }
A task transaction without a bad task type.
A task transaction without a bad task type .