vertx/src/test/java/eu/internetofus/common/vertx/AbstractMainTest.java
/**
   * Should not start vertx.
   *
   * @param testContext test context over the event bus.
   * @param tmpDir      temporal directory.
   *
   * @throws Throwable if can not start the vertx.
   */
Should not start vertx.
@param testContext test context over the event bus.
@param tmpDir      temporal directory.

@throws Throwable if can not start the vertx.
Should not start vertx . @param testContext test context over the event bus . @param tmpDir temporal directory . @throws Throwable if can not start the vertx .
@Test
  public void shouldNotStartVertx(final VertxTestContext testContext, @TempDir final File tmpDir) throws Throwable {
    this.main.startWith("-" + AbstractMain.PROPERTY_OPTION + AbstractMain.EFFECTIVE_CONFIGURATION_PATH + "=\""
        + tmpDir.getAbsolutePath() + "\"").onComplete(testContext.failing(error -> testContext.completeNow()));
    @SuppressWarnings("unchecked")
    final ArgumentCaptor<Promise<Void>> startPromise = ArgumentCaptor.forClass(Promise.class);
    verify(this.main.verticle, timeout(30000).times(1)).start(startPromise.capture());
    startPromise.getValue().fail("No start vertx");
  }
@ Test public void shouldNotStartVertx ( final VertxTestContext testContext , @ TempDir final File tmpDir ) throws Throwable { this . main . startWith ( "-" + AbstractMain . PROPERTY_OPTION + AbstractMain . EFFECTIVE_CONFIGURATION_PATH + "=\"" + tmpDir . getAbsolutePath ( ) + "\"" ) . onComplete ( testContext . failing ( error -> testContext . completeNow ( ) ) ) ; @ SuppressWarnings ( "unchecked" ) final ArgumentCaptor < Promise < Void > > startPromise = ArgumentCaptor . forClass ( Promise . class ) ; verify ( this . main . verticle , timeout ( 30000 ) . times ( 1 ) ) . start ( startPromise . capture ( ) ) ; startPromise . getValue ( ) . fail ( "No start vertx" ) ; }
Should not start vertx.
Should not start vertx .