components/src/test/java/eu/internetofus/common/components/models/SocialNetworkRelationshipTest.java
/**
   * Check that a model is not valid with an undefined app id.
   *
   * @param appId       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 with an undefined app id.
@param appId       that is not valid.
@param vertx       event bus to use.
@param testContext context to test.


Check that a model is not valid with an undefined app id . @param appId that is not valid . @param vertx event bus to use . @param testContext context to test .
@ParameterizedTest(name = "Should not be valid  a SocialNetworkRelationship with an appId = {0}")
  @NullAndEmptySource
  @ValueSource(strings = { "undefined value ", "9bec40b8-8209-4e28-b64b-1de52595ca6d" })
  public void shouldNotBeValidWithBadAppIdentifier(final String appId, final Vertx vertx,
      final VertxTestContext testContext) {
    this.createModelExample(0, vertx, testContext).onSuccess(model -> {
      model.appId = appId;
      model.type = SocialNetworkRelationshipType.colleague;
      assertIsNotValid(model, "appId", new WeNetValidateContext("codePrefix", vertx), testContext);
    });
  }
@ ParameterizedTest ( name = "Should not be valid  a SocialNetworkRelationship with an appId = {0}" ) @ NullAndEmptySource @ ValueSource ( strings = { "undefined value " , "9bec40b8-8209-4e28-b64b-1de52595ca6d" } ) public void shouldNotBeValidWithBadAppIdentifier ( final String appId , final Vertx vertx , final VertxTestContext testContext ) { this . createModelExample ( 0 , vertx , testContext ) . onSuccess ( model -> { model . appId = appId ; model . type = SocialNetworkRelationshipType . colleague ; assertIsNotValid ( model , "appId" , new WeNetValidateContext ( "codePrefix" , vertx ) , testContext ) ; } ) ; }
Check that a model is not valid with an undefined app id.
Check that a model is not valid with an undefined app id .