components/src/test/java/eu/internetofus/common/components/models/UserNameTest.java
/**
   * Check that the name can be merged with prefix with spaces.
   *
   * @param vertx       event bus to use.
   * @param testContext test context to use.
   *
   * @see UserName#merge(UserName, WeNetValidateContext)
   */
Check that the name can be merged with prefix with spaces.
@param vertx       event bus to use.
@param testContext test context to use.


Check that the name can be merged with prefix with spaces . @param vertx event bus to use . @param testContext test context to use .
@Test
  public void shouldMergeAPrefixWithSpaces(final Vertx vertx, final VertxTestContext testContext) {
    final var target = new UserName();
    final var source = new UserName();
    source.prefix = "   123 4567 890   ";
    assertCanMerge(target, source, new WeNetValidateContext("codePrefix", vertx), testContext,
        merged -> assertThat(merged.prefix).isEqualTo("123 4567 890"));
  }
@ Test public void shouldMergeAPrefixWithSpaces ( final Vertx vertx , final VertxTestContext testContext ) { final var target = new UserName ( ) ; final var source = new UserName ( ) ; source . prefix = "   123 4567 890   " ; assertCanMerge ( target , source , new WeNetValidateContext ( "codePrefix" , vertx ) , testContext , merged -> assertThat ( merged . prefix ) . isEqualTo ( "123 4567 890" ) ) ; }
Check that the name can be merged with prefix with spaces.
Check that the name can be merged with prefix with spaces .