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


Check that not accept profiles with bad locale . @param vertx event bus to use . @param testContext context to test .
@Test
  public void shouldNotBeValidWithABadLocale(final Vertx vertx, final VertxTestContext testContext) {
    final var model = new WeNetUserProfile();
    model.locale = " bad locale";
    assertIsNotValid(model, "locale", new WeNetValidateContext("codePrefix", vertx), testContext);
  }
@ Test public void shouldNotBeValidWithABadLocale ( final Vertx vertx , final VertxTestContext testContext ) { final var model = new WeNetUserProfile ( ) ; model . locale = " bad locale" ; assertIsNotValid ( model , "locale" , new WeNetValidateContext ( "codePrefix" , vertx ) , testContext ) ; }
Check that not accept profiles with bad locale.
Check that not accept profiles with bad locale .