components/src/test/java/eu/internetofus/common/components/models/ProfileDateTestCase.java
/**
   * Should not merge with a bad month.
   *
   * @param vertx       event bus to use.
   * @param testContext test context to use.
   *
   * @param month       that is not valid.
   */
Should not merge with a bad month.
@param vertx       event bus to use.
@param testContext test context to use.

@param month       that is not valid.
Should not merge with a bad month . @param vertx event bus to use . @param testContext test context to use . @param month that is not valid .
@ParameterizedTest(name = "Should not merge a date with the value {0} as month.")
  @ValueSource(bytes = { 0, 13, -1, 100 })
  public void shouldNotMergeMonth(final byte month, final Vertx vertx, final VertxTestContext testContext) {
    final ProfileDate target = this.createEmptyModel();
    final ProfileDate source = this.createEmptyModel();
    source.year = 2020;
    source.month = month;
    source.day = 2;
    assertCannotMerge(target, source, "month", new WeNetValidateContext("codePrefix", vertx), testContext);
  }
@ ParameterizedTest ( name = "Should not merge a date with the value {0} as month." ) @ ValueSource ( bytes = { 0 , 13 , - 1 , 100 } ) public void shouldNotMergeMonth ( final byte month , final Vertx vertx , final VertxTestContext testContext ) { final ProfileDate target = this . createEmptyModel ( ) ; final ProfileDate source = this . createEmptyModel ( ) ; source . year = 2020 ; source . month = month ; source . day = 2 ; assertCannotMerge ( target , source , "month" , new WeNetValidateContext ( "codePrefix" , vertx ) , testContext ) ; }
Should not merge with a bad month.
Should not merge with a bad month .