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


Check that not merge undefined source identifier . @param vertx event bus to use . @param testContext test context to use .
@Test
  public void shouldFailMergeUndefinedSourceId(final Vertx vertx, final VertxTestContext testContext) {
    this.createModelExample(1, vertx, testContext).onSuccess(target -> {
      final var newModel = new SocialNetworkRelationship();
      newModel.sourceId = "undefinedUserId";
      assertCannotMerge(target, newModel, "sourceId", new WeNetValidateContext("codePrefix", vertx), testContext);
    });
  }
@ Test public void shouldFailMergeUndefinedSourceId ( final Vertx vertx , final VertxTestContext testContext ) { this . createModelExample ( 1 , vertx , testContext ) . onSuccess ( target -> { final var newModel = new SocialNetworkRelationship ( ) ; newModel . sourceId = "undefinedUserId" ; assertCannotMerge ( target , newModel , "sourceId" , new WeNetValidateContext ( "codePrefix" , vertx ) , testContext ) ; } ) ; }
Check that not merge undefined source identifier.
Check that not merge undefined source identifier .