components/src/test/java/eu/internetofus/common/components/models/LabelTest.java
/**
   * Check that can not merge with a bad latitude.
   *
   * @param value       that is not valid for a latitude.
   * @param vertx       event bus to use.
   * @param testContext test context to use.
   *
   * @see RelevantLocation#merge(RelevantLocation, WeNetValidateContext)
   */
Check that can not merge with a bad latitude.
@param value       that is not valid for a latitude.
@param vertx       event bus to use.
@param testContext test context to use.


Check that can not merge with a bad latitude . @param value that is not valid for a latitude . @param vertx event bus to use . @param testContext test context to use .
@ParameterizedTest(name = "Should not merge a Label with a {0} latitude")
  @ValueSource(doubles = { -90.1, 90.1, -90.00001, 90.000001 })
  public void shouldNotMergeBadLatitude(final double value, final Vertx vertx, final VertxTestContext testContext) {
    final var source = new Label();
    source.latitude = value;
    final var target = this.createModelExample(2);
    assertCannotMerge(target, source, "latitude", new WeNetValidateContext("codePrefix", vertx), testContext);
  }
@ ParameterizedTest ( name = "Should not merge a Label with a {0} latitude" ) @ ValueSource ( doubles = { - 90.1 , 90.1 , - 90.00001 , 90.000001 } ) public void shouldNotMergeBadLatitude ( final double value , final Vertx vertx , final VertxTestContext testContext ) { final var source = new Label ( ) ; source . latitude = value ; final var target = this . createModelExample ( 2 ) ; assertCannotMerge ( target , source , "latitude" , new WeNetValidateContext ( "codePrefix" , vertx ) , testContext ) ; }
Check that can not merge with a bad latitude.
Check that can not merge with a bad latitude .