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#merge(WeNetUserProfile, 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 shouldNotMergeWithABadBirthDate(final Vertx vertx, final VertxTestContext testContext) {
    final var source = new WeNetUserProfile();
    source.dateOfBirth = new AliveBirthDateTest().createModelExample(1);
    source.dateOfBirth.month = 13;
    assertCannotMerge(new WeNetUserProfile(), source, "dateOfBirth.month",
        new WeNetValidateContext("codePrefix", vertx), testContext);
  }
@ Test public void shouldNotMergeWithABadBirthDate ( final Vertx vertx , final VertxTestContext testContext ) { final var source = new WeNetUserProfile ( ) ; source . dateOfBirth = new AliveBirthDateTest ( ) . createModelExample ( 1 ) ; source . dateOfBirth . month = 13 ; assertCannotMerge ( new WeNetUserProfile ( ) , source , "dateOfBirth.month" , new WeNetValidateContext ( "codePrefix" , vertx ) , testContext ) ; }
Check that the birth date is not valid.
Check that the birth date is not valid .