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


Check that a model is not valid without a target id . @param vertx event bus to use . @param testContext context to test .
@Test
  public void shouldNotBeValidModelWithoutTargetId(final Vertx vertx, final VertxTestContext testContext) {
    this.createModelExample(0, vertx, testContext).onSuccess(model -> {
      model.type = SocialNetworkRelationshipType.colleague;
      model.targetId = null;
      assertIsNotValid(model, "targetId", new WeNetValidateContext("codePrefix", vertx), testContext);
    });
  }
@ Test public void shouldNotBeValidModelWithoutTargetId ( final Vertx vertx , final VertxTestContext testContext ) { this . createModelExample ( 0 , vertx , testContext ) . onSuccess ( model -> { model . type = SocialNetworkRelationshipType . colleague ; model . targetId = null ; assertIsNotValid ( model , "targetId" , new WeNetValidateContext ( "codePrefix" , vertx ) , testContext ) ; } ) ; }
Check that a model is not valid without a target id.
Check that a model is not valid without a target id .