components/src/test/java/eu/internetofus/common/components/models/WeNetUserProfileTest.java
/**
   * Check that the birth date is not valid.
   *
   * @param vertx       event bus to use.
   * @param testContext context to test.
   *
   * @see WeNetUserProfile#validate(WeNetValidateContext)
   */
Check that the birth date is not valid.
@param vertx       event bus to use.
@param testContext context to test.


Check that the birth date is not valid . @param vertx event bus to use . @param testContext context to test .
@Test
  public void shouldNotBeValidWithABadBirthDate(final Vertx vertx, final VertxTestContext testContext) {
    final var model = new WeNetUserProfile();
    model.dateOfBirth = new AliveBirthDateTest().createModelExample(1);
    model.dateOfBirth.month = 0;
    assertIsNotValid(model, "dateOfBirth.month", new WeNetValidateContext("codePrefix", vertx), testContext);
  }
@ Test public void shouldNotBeValidWithABadBirthDate ( final Vertx vertx , final VertxTestContext testContext ) { final var model = new WeNetUserProfile ( ) ; model . dateOfBirth = new AliveBirthDateTest ( ) . createModelExample ( 1 ) ; model . dateOfBirth . month = 0 ; assertIsNotValid ( model , "dateOfBirth.month" , new WeNetValidateContext ( "codePrefix" , vertx ) , testContext ) ; }
Check that the birth date is not valid.
Check that the birth date is not valid .