components/src/test/java/eu/internetofus/common/components/models/SocialNetworkRelationshipTest.java
/**
   * Check that a model is not valid without a bad weight.
   *
   * @param weight      that is not valid.
   * @param vertx       event bus to use.
   * @param testContext context to test.
   *
   * @see SocialNetworkRelationship#validate(WeNetValidateContext)
   */
Check that a model is not valid without a bad weight.
@param weight      that is not valid.
@param vertx       event bus to use.
@param testContext context to test.


Check that a model is not valid without a bad weight . @param weight that is not valid . @param vertx event bus to use . @param testContext context to test .
@ParameterizedTest(name = "Should a social network relationship with a weight {0} not be valid")
  @ValueSource(doubles = { -0.00001d, 1.000001d, -23d, +23d })
  public void shouldNotBeValidModelWithBadWeight(final double weight, final Vertx vertx,
      final VertxTestContext testContext) {
    this.createModelExample(1, vertx, testContext).onSuccess(model -> {
      model.weight = weight;
      assertIsNotValid(model, "weight", new WeNetValidateContext("codePrefix", vertx), testContext);
    });
  }
@ ParameterizedTest ( name = "Should a social network relationship with a weight {0} not be valid" ) @ ValueSource ( doubles = { - 0.00001d , 1.000001d , - 23d , + 23d } ) public void shouldNotBeValidModelWithBadWeight ( final double weight , final Vertx vertx , final VertxTestContext testContext ) { this . createModelExample ( 1 , vertx , testContext ) . onSuccess ( model -> { model . weight = weight ; assertIsNotValid ( model , "weight" , new WeNetValidateContext ( "codePrefix" , vertx ) , testContext ) ; } ) ; }
Check that a model is not valid without a bad weight.
Check that a model is not valid without a bad weight .