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


Check that not accept profiles with bad relevant locations . @param vertx event bus to use . @param testContext context to test .
@Test
  public void shouldNotBeValidWithABadRelevantLocations(final Vertx vertx, final VertxTestContext testContext) {
    final var model = new WeNetUserProfile();
    model.relevantLocations = new ArrayList<>();
    model.relevantLocations.add(new RelevantLocationTest().createModelExample(1));
    model.relevantLocations.add(new RelevantLocationTest().createModelExample(2));
    model.relevantLocations.add(new RelevantLocationTest().createModelExample(3));
    model.relevantLocations.get(1).latitude = 1988d;
    assertIsNotValid(model, "relevantLocations[1].latitude", new WeNetValidateContext("codePrefix", vertx),
        testContext);
  }
@ Test public void shouldNotBeValidWithABadRelevantLocations ( final Vertx vertx , final VertxTestContext testContext ) { final var model = new WeNetUserProfile ( ) ; model . relevantLocations = new ArrayList < > ( ) ; model . relevantLocations . add ( new RelevantLocationTest ( ) . createModelExample ( 1 ) ) ; model . relevantLocations . add ( new RelevantLocationTest ( ) . createModelExample ( 2 ) ) ; model . relevantLocations . add ( new RelevantLocationTest ( ) . createModelExample ( 3 ) ) ; model . relevantLocations . get ( 1 ) . latitude = 1988d ; assertIsNotValid ( model , "relevantLocations[1].latitude" , new WeNetValidateContext ( "codePrefix" , vertx ) , testContext ) ; }
Check that not accept profiles with bad relevant locations.
Check that not accept profiles with bad relevant locations .