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


A task transaction without task identifier cannot be valid . @param vertx event bus to use . @param testContext test context to use .
@Test
  public void shouldTaskTransactionBeNotValidWithoutTaskId(final Vertx vertx, final VertxTestContext testContext) {
    this.createModelExample(1, vertx, testContext).onComplete(testContext.succeeding(model -> {
      model.taskId = null;
      assertIsNotValid(model, "taskId", new WeNetValidateContext("codePrefix", vertx), testContext);
    }));
  }
@ Test public void shouldTaskTransactionBeNotValidWithoutTaskId ( final Vertx vertx , final VertxTestContext testContext ) { this . createModelExample ( 1 , vertx , testContext ) . onComplete ( testContext . succeeding ( model -> { model . taskId = null ; assertIsNotValid ( model , "taskId" , new WeNetValidateContext ( "codePrefix" , vertx ) , testContext ) ; } ) ) ; }
A task transaction without task identifier cannot be valid.
A task transaction without task identifier cannot be valid .