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