components/src/test/java/eu/internetofus/common/components/models/TaskTest.java
/**
   * Check that can not merge when the {@link Task#norms} has a bas value.
   *
   * @param vertx       event bus to use.
   * @param testContext context to test.
   *
   * @see Task#merge(Task, WeNetValidateContext)
   */
Check that can not merge when the  Task#norms has a bas value.
@param vertx       event bus to use.
@param testContext context to test.


Check that can not merge when the Task#norms has a bas value . @param vertx event bus to use . @param testContext context to test .
@Test
  public void shouldNotMergeWithBadNorms(final Vertx vertx, final VertxTestContext testContext) {
    this.createModelExample(1, vertx, testContext).onSuccess(targetToStore -> {
      StoreServices.storeTask(targetToStore, vertx, testContext).onSuccess(target -> {
        final var source = new Task();
        source.norms = new ArrayList<>();
        source.norms.add(new ProtocolNorm());
        assertCannotMerge(target, source, "norms[0].whenever", new WeNetValidateContext("codePrefix", vertx),
            testContext);
      });
    });
  }
@ Test public void shouldNotMergeWithBadNorms ( final Vertx vertx , final VertxTestContext testContext ) { this . createModelExample ( 1 , vertx , testContext ) . onSuccess ( targetToStore -> { StoreServices . storeTask ( targetToStore , vertx , testContext ) . onSuccess ( target -> { final var source = new Task ( ) ; source . norms = new ArrayList < > ( ) ; source . norms . add ( new ProtocolNorm ( ) ) ; assertCannotMerge ( target , source , "norms[0].whenever" , new WeNetValidateContext ( "codePrefix" , vertx ) , testContext ) ; } ) ; } ) ; }
Check that can not merge when the {@link Task#norms} has a bas value.
Check that can not merge when the { @link Task#norms } has a bas value .