components/src/test/java/eu/internetofus/common/components/models/AliveBirthDateTest.java
/**
   * Should not be valid to born in the future.
   *
   * @param vertx       event bus to use.
   * @param testContext test context to use.
   *
   * @see AliveBirthDate#validate(WeNetValidateContext)
   */
Should not be valid to born in the future.
@param vertx       event bus to use.
@param testContext test context to use.


Should not be valid to born in the future . @param vertx event bus to use . @param testContext test context to use .
@Test
  public void shouldNotBeValidToBornOnTheFuture(final Vertx vertx, final VertxTestContext testContext) {
    final var model = this.createEmptyModel();
    final var tomorrow = LocalDate.now().plusDays(1);
    model.year = tomorrow.getYear();
    model.month = (byte) tomorrow.getMonthValue();
    model.day = (byte) tomorrow.getDayOfMonth();
    assertIsNotValid(model, new WeNetValidateContext("codePrefix", vertx), testContext);
  }
@ Test public void shouldNotBeValidToBornOnTheFuture ( final Vertx vertx , final VertxTestContext testContext ) { final var model = this . createEmptyModel ( ) ; final var tomorrow = LocalDate . now ( ) . plusDays ( 1 ) ; model . year = tomorrow . getYear ( ) ; model . month = ( byte ) tomorrow . getMonthValue ( ) ; model . day = ( byte ) tomorrow . getDayOfMonth ( ) ; assertIsNotValid ( model , new WeNetValidateContext ( "codePrefix" , vertx ) , testContext ) ; }
Should not be valid to born in the future.
Should not be valid to born in the future .