components/src/test/java/eu/internetofus/common/components/WeNetValidateContextTest.java
/**
   * Check that fail validate exists social network relationship field.
   *
   * @param vertx       event bus to use.
   * @param testContext context to test.
   *
   * @see WeNetValidateContext#validateExistSocialNetworkRelationshipField
   */
Check that fail validate exists social network relationship field.
@param vertx       event bus to use.
@param testContext context to test.


Check that fail validate exists social network relationship field . @param vertx event bus to use . @param testContext context to test .
@Test
  public void shouldFailValidateExistSocialNetworkRelationshipField(final Vertx vertx,
      final VertxTestContext testContext) {
    final var cache = new WeNetValidateContext("codePrefix", vertx);
    testContext.assertFailure(cache.validateExistSocialNetworkRelationshipField("name", UUID.randomUUID().toString(),
        UUID.randomUUID().toString(), UUID.randomUUID().toString(), null, Future.succeededFuture())).onFailure(
            any -> testContext
                .assertFailure(cache.validateExistSocialNetworkRelationshipField("name", UUID.randomUUID().toString(),
                    UUID.randomUUID().toString(), UUID.randomUUID().toString(),
                    SocialNetworkRelationshipType.acquaintance, Future.succeededFuture()))
                .onFailure(any2 -> testContext.completeNow()));
  }
@ Test public void shouldFailValidateExistSocialNetworkRelationshipField ( final Vertx vertx , final VertxTestContext testContext ) { final var cache = new WeNetValidateContext ( "codePrefix" , vertx ) ; testContext . assertFailure ( cache . validateExistSocialNetworkRelationshipField ( "name" , UUID . randomUUID ( ) . toString ( ) , UUID . randomUUID ( ) . toString ( ) , UUID . randomUUID ( ) . toString ( ) , null , Future . succeededFuture ( ) ) ) . onFailure ( any -> testContext . assertFailure ( cache . validateExistSocialNetworkRelationshipField ( "name" , UUID . randomUUID ( ) . toString ( ) , UUID . randomUUID ( ) . toString ( ) , UUID . randomUUID ( ) . toString ( ) , SocialNetworkRelationshipType . acquaintance , Future . succeededFuture ( ) ) ) . onFailure ( any2 -> testContext . completeNow ( ) ) ) ; }
Check that fail validate exists social network relationship field.
Check that fail validate exists social network relationship field .