components/src/test/java/eu/internetofus/common/components/models/WeNetUserProfileTest.java
/**
   * Check that not accept profiles with bad phone number.
   *
   * @param vertx       event bus to use.
   * @param testContext context to test.
   *
   * @see WeNetUserProfile#merge(WeNetUserProfile, WeNetValidateContext)
   */
Check that not accept profiles with bad phone number.
@param vertx       event bus to use.
@param testContext context to test.


Check that not accept profiles with bad phone number . @param vertx event bus to use . @param testContext context to test .
@Test
  public void shouldNotMergeWithABadPhoneNumber(final Vertx vertx, final VertxTestContext testContext) {
    final var source = new WeNetUserProfile();
    source.phoneNumber = " bad phone number";
    assertCannotMerge(new WeNetUserProfile(), source, "phoneNumber", new WeNetValidateContext("codePrefix", vertx),
        testContext);
  }
@ Test public void shouldNotMergeWithABadPhoneNumber ( final Vertx vertx , final VertxTestContext testContext ) { final var source = new WeNetUserProfile ( ) ; source . phoneNumber = " bad phone number" ; assertCannotMerge ( new WeNetUserProfile ( ) , source , "phoneNumber" , new WeNetValidateContext ( "codePrefix" , vertx ) , testContext ) ; }
Check that not accept profiles with bad phone number.
Check that not accept profiles with bad phone number .