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

@throws Exception If the verticle cannot be started/stopped.
Check that start and stop the verticle @param testContext context of the test . @throws Exception If the verticle cannot be started / stopped .
@Test
  public void shouldStartAndStop(final VertxTestContext testContext) throws Exception {
    doReturn(Future.succeededFuture()).when(this.verticle).registerRepositoriesFor(any());
    final Promise<Void> startPromise = Promise.promise();
    this.verticle.start(startPromise);
    startPromise.future().onComplete(testContext.succeeding(empty -> testContext.verify(() -> {
      assertThat(this.verticle.pool).isNotNull();
      this.verticle.stop();
      assertThat(this.verticle.pool).isNull();
      this.verticle.stop();
      testContext.completeNow();
    })));
  }
@ Test public void shouldStartAndStop ( final VertxTestContext testContext ) throws Exception { doReturn ( Future . succeededFuture ( ) ) . when ( this . verticle ) . registerRepositoriesFor ( any ( ) ) ; final Promise < Void > startPromise = Promise . promise ( ) ; this . verticle . start ( startPromise ) ; startPromise . future ( ) . onComplete ( testContext . succeeding ( empty -> testContext . verify ( ( ) -> { assertThat ( this . verticle . pool ) . isNotNull ( ) ; this . verticle . stop ( ) ; assertThat ( this . verticle . pool ) . isNull ( ) ; this . verticle . stop ( ) ; testContext . completeNow ( ) ; } ) ) ) ; }
Check that start and stop the verticle
 @param testContext context of the test.
Check that start and stop the verticle @param testContext context of the test .