components/src/test/java/eu/internetofus/common/components/profile_manager/WeNetProfileManagerTestCase.java
/**
   * Should add or update bad social network relationships.
   *
   * @param vertx       that contains the event bus to use.
   * @param testContext context over the tests.
   */
Should add or update bad social network relationships.
@param vertx       that contains the event bus to use.
@param testContext context over the tests.
Should add or update bad social network relationships . @param vertx that contains the event bus to use . @param testContext context over the tests .
@Test
  public void shouldAddOrUpdateSocialNetworkRelationships(final Vertx vertx, final VertxTestContext testContext) {
    testContext.assertComplete(new SocialNetworkRelationshipTest().createModelExample(0, vertx, testContext))
        .onSuccess(relationship1 -> testContext
            .assertComplete(new SocialNetworkRelationshipTest().createModelExample(1, vertx, testContext))
            .onSuccess(relationship2 -> {
              final List<SocialNetworkRelationship> relationships = new ArrayList<>();
              relationships.add(relationship1);
              relationships.add(relationship2);
              testContext
                  .assertComplete(
                      WeNetProfileManager.createProxy(vertx).addOrUpdateSocialNetworkRelationships(relationships))
                  .onSuccess(any -> testContext.completeNow());
            }));
  }
@ Test public void shouldAddOrUpdateSocialNetworkRelationships ( final Vertx vertx , final VertxTestContext testContext ) { testContext . assertComplete ( new SocialNetworkRelationshipTest ( ) . createModelExample ( 0 , vertx , testContext ) ) . onSuccess ( relationship1 -> testContext . assertComplete ( new SocialNetworkRelationshipTest ( ) . createModelExample ( 1 , vertx , testContext ) ) . onSuccess ( relationship2 -> { final List < SocialNetworkRelationship > relationships = new ArrayList < > ( ) ; relationships . add ( relationship1 ) ; relationships . add ( relationship2 ) ; testContext . assertComplete ( WeNetProfileManager . createProxy ( vertx ) . addOrUpdateSocialNetworkRelationships ( relationships ) ) . onSuccess ( any -> testContext . completeNow ( ) ) ; } ) ) ; }
Should add or update bad social network relationships.
Should add or update bad social network relationships .