components/src/test/java/eu/internetofus/common/components/WeNetValidateContextTest.java
/**
   * Check that fail validate defined Profile by id field.
   *
   * @param vertx       event bus to use.
   * @param testContext context to test.
   *
   * @see WeNetValidateContext#validateDefinedProfileIdField
   */
Check that fail validate defined Profile by id field.
@param vertx       event bus to use.
@param testContext context to test.


Check that fail validate defined Profile by id field . @param vertx event bus to use . @param testContext context to test .
@Test
  public void shouldFailValidateDefinedProfileIdField(final Vertx vertx, final VertxTestContext testContext) {
    final var id = UUID.randomUUID().toString();
    final var cache = new WeNetValidateContext("codePrefix", vertx);
    testContext.assertFailure(cache.validateDefinedProfileIdField("name", id, Future.succeededFuture()))
        .onFailure(any -> testContext.completeNow());
  }
@ Test public void shouldFailValidateDefinedProfileIdField ( final Vertx vertx , final VertxTestContext testContext ) { final var id = UUID . randomUUID ( ) . toString ( ) ; final var cache = new WeNetValidateContext ( "codePrefix" , vertx ) ; testContext . assertFailure ( cache . validateDefinedProfileIdField ( "name" , id , Future . succeededFuture ( ) ) ) . onFailure ( any -> testContext . completeNow ( ) ) ; }
Check that fail validate defined Profile by id field.
Check that fail validate defined Profile by id field .