components/src/test/java/eu/internetofus/common/components/models/ProfileDateTestCase.java
/**
   * Should not be valid with a bad day.
   *
   * @param day         that is not valid.
   * @param vertx       event bus to use.
   * @param testContext test context to use.
   */
Should not be valid with a bad day.
@param day         that is not valid.
@param vertx       event bus to use.
@param testContext test context to use.
Should not be valid with a bad day . @param day that is not valid . @param vertx event bus to use . @param testContext test context to use .
@ParameterizedTest(name = "Should not be valid a date with the value {0} as day.")
  @ValueSource(bytes = { 0, 32, -1, 100 })
  public void shouldNotBeValidDay(final byte day, final Vertx vertx, final VertxTestContext testContext) {
    final ProfileDate model = this.createEmptyModel();
    model.year = 2020;
    model.month = 4;
    model.day = day;
    assertIsNotValid(model, "day", new WeNetValidateContext("codePrefix", vertx), testContext);
  }
@ ParameterizedTest ( name = "Should not be valid a date with the value {0} as day." ) @ ValueSource ( bytes = { 0 , 32 , - 1 , 100 } ) public void shouldNotBeValidDay ( final byte day , final Vertx vertx , final VertxTestContext testContext ) { final ProfileDate model = this . createEmptyModel ( ) ; model . year = 2020 ; model . month = 4 ; model . day = day ; assertIsNotValid ( model , "day" , new WeNetValidateContext ( "codePrefix" , vertx ) , testContext ) ; }
Should not be valid with a bad day.
Should not be valid with a bad day .