vertx/src/test/java/eu/internetofus/common/vertx/OpenAPIValidatorTest.java
/**
   * Check that an specification is valid.
   *
   * @param future      that has to success.
   * @param value       that has to be the future result.
   * @param testContext test cycle controller.
   */
Check that an specification is valid.
@param future      that has to success.
@param value       that has to be the future result.
@param testContext test cycle controller.
Check that an specification is valid . @param future that has to success . @param value that has to be the future result . @param testContext test cycle controller .
public static final <T> void assertSuccess(final Future<T> future, final T value,
      final VertxTestContext testContext) {
    future.onComplete(testContext.succeeding(successValue -> testContext.verify(() -> {
      assertThat(successValue).isEqualTo(value);
      testContext.completeNow();
    })));
  }
public static final < T > void assertSuccess ( final Future < T > future , final T value , final VertxTestContext testContext ) { future . onComplete ( testContext . succeeding ( successValue -> testContext . verify ( ( ) -> { assertThat ( successValue ) . isEqualTo ( value ) ; testContext . completeNow ( ) ; } ) ) ) ; }
Check that an specification is valid.
Check that an specification is valid .