components/src/test/java/eu/internetofus/common/components/models/TaskTypeTest.java
/**
   * Check that the model with id is not valid.
   *
   * @param vertx       event bus to use.
   * @param testContext context to test.
   *
   * @see WeNetUserProfile#validate(WeNetValidateContext)
   */
Check that the model with id is not valid.
@param vertx       event bus to use.
@param testContext context to test.


Check that the model with id is not valid . @param vertx event bus to use . @param testContext context to test .
@Test
  public void shouldNotBeValidWithAnExistingId(final Vertx vertx, final VertxTestContext testContext) {
    StoreServices.storeTaskTypeExample(1, vertx, testContext).onSuccess(created -> {
      final var model = this.createModelExample(1);
      model.id = created.id;
      assertIsNotValid(model, "id", new WeNetValidateContext("codePrefix", vertx), testContext);
    });
  }
@ Test public void shouldNotBeValidWithAnExistingId ( final Vertx vertx , final VertxTestContext testContext ) { StoreServices . storeTaskTypeExample ( 1 , vertx , testContext ) . onSuccess ( created -> { final var model = this . createModelExample ( 1 ) ; model . id = created . id ; assertIsNotValid ( model , "id" , new WeNetValidateContext ( "codePrefix" , vertx ) , testContext ) ; } ) ; }
Check that the model with id is not valid.
Check that the model with id is not valid .