vertx/src/test/java/eu/internetofus/common/vertx/AbstractAPIVerticleTest.java
/**
   * Check that not start because can not register repositories.
   *
   * @param vertx       event bus to use.
   * @param testContext context of the test.
   *
   * @throws Exception If the verticle cannot be started/stopped.
   */
Check that not start because can not register repositories.
@param vertx       event bus to use.
@param testContext context of the test.

@throws Exception If the verticle cannot be started/stopped.
Check that not start because can not register repositories . @param vertx event bus to use . @param testContext context of the test . @throws Exception If the verticle cannot be started / stopped .
@Test
  public void shouldNotStartWithBadOpenApiSpecification(final Vertx vertx, final VertxTestContext testContext)
      throws Exception {
    doReturn(vertx).when(this.verticle).getVertx();
    doReturn("eu/internetofus/common/vertx/badOpenApi.yml").when(this.verticle).getOpenAPIResourcePath();
    final Promise<Void> startPromise = Promise.promise();
    this.verticle.start(startPromise);
    startPromise.future().onComplete(testContext.failing(error -> testContext.completeNow()));
  }
@ Test public void shouldNotStartWithBadOpenApiSpecification ( final Vertx vertx , final VertxTestContext testContext ) throws Exception { doReturn ( vertx ) . when ( this . verticle ) . getVertx ( ) ; doReturn ( "eu/internetofus/common/vertx/badOpenApi.yml" ) . when ( this . verticle ) . getOpenAPIResourcePath ( ) ; final Promise < Void > startPromise = Promise . promise ( ) ; this . verticle . start ( startPromise ) ; startPromise . future ( ) . onComplete ( testContext . failing ( error -> testContext . completeNow ( ) ) ) ; }
Check that not start because can not register repositories.
Check that not start because can not register repositories .