vertx/src/test/java/eu/internetofus/common/vertx/AbstractMainVerticleTest.java
/**
   * Check that start and stop verticle.
   *
   * @param vertx       event bus to use.
   * @param testContext context of the test.
   *
   * @throws Exception If the verticle cannot be started/stopped.
   */
Check that start and stop verticle.
@param vertx       event bus to use.
@param testContext context of the test.

@throws Exception If the verticle cannot be started/stopped.
Check that start and stop verticle . @param vertx event bus to use . @param testContext context of the test . @throws Exception If the verticle cannot be started / stopped .
@Test
  public void shouldStartAndStop(final Vertx vertx, final VertxTestContext testContext) throws Exception {
    doReturn(new Class[0]).when(this.verticle).getVerticleClassesToDeploy();
    final Promise<Void> startPromise = Promise.promise();
    this.verticle.start(startPromise);
    startPromise.future().onComplete(testContext.succeeding(empty -> testContext.verify(() -> {
      this.verticle.stop();
      testContext.completeNow();
    })));
  }
@ Test public void shouldStartAndStop ( final Vertx vertx , final VertxTestContext testContext ) throws Exception { doReturn ( new Class [ 0 ] ) . when ( this . verticle ) . getVerticleClassesToDeploy ( ) ; final Promise < Void > startPromise = Promise . promise ( ) ; this . verticle . start ( startPromise ) ; startPromise . future ( ) . onComplete ( testContext . succeeding ( empty -> testContext . verify ( ( ) -> { this . verticle . stop ( ) ; testContext . completeNow ( ) ; } ) ) ) ; }
Check that start and stop verticle.
Check that start and stop verticle .