components/src/test/java/eu/internetofus/common/components/models/RelevantLocationTest.java
/**
   * Check that a model with all the values is valid.
   *
   * @param vertx       event bus to use.
   * @param testContext test context to use.
   *
   * @see RelevantLocation#validate(WeNetValidateContext)
   */
Check that a model with all the values is valid.
@param vertx       event bus to use.
@param testContext test context to use.


Check that a model with all the values is valid . @param vertx event bus to use . @param testContext test context to use .
@Test
  public void shouldFullModelBeValid(final Vertx vertx, final VertxTestContext testContext) {
    final var model = new RelevantLocation();
    model.id = "      ";
    model.label = "    label    ";
    model.longitude = 10d;
    model.latitude = -10d;
    assertIsValid(model, new WeNetValidateContext("codePrefix", vertx), testContext, () -> {
      final var expected = new RelevantLocation();
      expected.id = model.id;
      expected.label = "label";
      expected.longitude = 10d;
      expected.latitude = -10d;
      assertThat(model).isEqualTo(expected);
    });
  }
@ Test public void shouldFullModelBeValid ( final Vertx vertx , final VertxTestContext testContext ) { final var model = new RelevantLocation ( ) ; model . id = "      " ; model . label = "    label    " ; model . longitude = 10d ; model . latitude = - 10d ; assertIsValid ( model , new WeNetValidateContext ( "codePrefix" , vertx ) , testContext , ( ) -> { final var expected = new RelevantLocation ( ) ; expected . id = model . id ; expected . label = "label" ; expected . longitude = 10d ; expected . latitude = - 10d ; assertThat ( model ) . isEqualTo ( expected ) ; } ) ; }
Check that a model with all the values is valid.
Check that a model with all the values is valid .