components/src/test/java/eu/internetofus/common/components/models/TaskTransactionTest.java
/**
   * A creation transaction has not to be valid when has attributes.
   *
   * @param vertx       event bus to use.
   * @param testContext test context to use.
   *
   * @see TaskTransaction#validate(WeNetValidateContext)
   */
A creation transaction has not to be valid when has attributes.
@param vertx       event bus to use.
@param testContext test context to use.


A creation transaction has not to be valid when has attributes . @param vertx event bus to use . @param testContext test context to use .
@Test
  public void shouldTransactionIsNotValidWhenIsCreateTaskWithSomeAttributes(final Vertx vertx,
      final VertxTestContext testContext) {
    final var model = new TaskTransaction();
    model.label = TaskTransaction.CREATE_TASK_LABEL;
    model.attributes = new JsonObject().put("key", "value");
    assertIsNotValid(model, "attributes", new WeNetValidateContext("codePrefix", vertx), testContext);
  }
@ Test public void shouldTransactionIsNotValidWhenIsCreateTaskWithSomeAttributes ( final Vertx vertx , final VertxTestContext testContext ) { final var model = new TaskTransaction ( ) ; model . label = TaskTransaction . CREATE_TASK_LABEL ; model . attributes = new JsonObject ( ) . put ( "key" , "value" ) ; assertIsNotValid ( model , "attributes" , new WeNetValidateContext ( "codePrefix" , vertx ) , testContext ) ; }
A creation transaction has not to be valid when has attributes.
A creation transaction has not to be valid when has attributes .