components/src/test/java/eu/internetofus/common/components/models/SocialNetworkRelationshipTest.java
/**
   * Check that not update undefined target identifier.
   *
   * @param vertx       event bus to use.
   * @param testContext test context to use.
   *
   * @see RelevantLocation#update(RelevantLocation, WeNetValidateContext)
   */
Check that not update undefined target identifier.
@param vertx       event bus to use.
@param testContext test context to use.


Check that not update undefined target identifier . @param vertx event bus to use . @param testContext test context to use .
@Test
  public void shouldFailUpdateUndefinedTargetId(final Vertx vertx, final VertxTestContext testContext) {
    this.createModelExample(1, vertx, testContext).onSuccess(target -> {
      final var newModel = Model.fromBuffer(target.toBuffer(), SocialNetworkRelationship.class);
      newModel.targetId = "undefinedUserId";
      assertCannotUpdate(target, newModel, "targetId", new WeNetValidateContext("codePrefix", vertx), testContext);
    });
  }
@ Test public void shouldFailUpdateUndefinedTargetId ( final Vertx vertx , final VertxTestContext testContext ) { this . createModelExample ( 1 , vertx , testContext ) . onSuccess ( target -> { final var newModel = Model . fromBuffer ( target . toBuffer ( ) , SocialNetworkRelationship . class ) ; newModel . targetId = "undefinedUserId" ; assertCannotUpdate ( target , newModel , "targetId" , new WeNetValidateContext ( "codePrefix" , vertx ) , testContext ) ; } ) ; }
Check that not update undefined target identifier.
Check that not update undefined target identifier .