components/src/test/java/eu/internetofus/common/components/models/TaskTest.java
/**
   * Check that a task with an undefined identifier is valid.
   *
   * @param vertx       event bus to use.
   * @param testContext test context to use.
   *
   * @see Task#validate(WeNetValidateContext)
   */
Check that a task with an undefined identifier is valid.
@param vertx       event bus to use.
@param testContext test context to use.


Check that a task with an undefined identifier is valid . @param vertx event bus to use . @param testContext test context to use .
@Test
  public void shouldTaskWitIdBeValid(final Vertx vertx, final VertxTestContext testContext) {
    this.createModelExample(1, vertx, testContext).onSuccess(model -> testContext.verify(() -> {
      model.id = UUID.randomUUID().toString();
      assertIsValid(model, new WeNetValidateContext("codePrefix", vertx), testContext);
    }));
  }
@ Test public void shouldTaskWitIdBeValid ( final Vertx vertx , final VertxTestContext testContext ) { this . createModelExample ( 1 , vertx , testContext ) . onSuccess ( model -> testContext . verify ( ( ) -> { model . id = UUID . randomUUID ( ) . toString ( ) ; assertIsValid ( model , new WeNetValidateContext ( "codePrefix" , vertx ) , testContext ) ; } ) ) ; }
Check that a task with an undefined identifier is valid.
Check that a task with an undefined identifier is valid .