vertx/src/test/java/eu/internetofus/common/vertx/AbstractMainVerticleTest.java
/**
   * Check that not start with bad verticle.
   *
   * @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 with bad verticle.
@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 with bad 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 shouldNotStartWithBadVerticle(final Vertx vertx, final VertxTestContext testContext) throws Exception {
    doReturn(new Class[] { DummyWorkerVerticle.class, NoStartVerticle.class }).when(this.verticle).getVerticleClassesToDeploy();
    doReturn(new JsonObject()).when(this.verticle).config();
    doReturn(vertx).when(this.verticle).getVertx();
    final Promise<Void> startPromise = Promise.promise();
    this.verticle.start(startPromise);
    startPromise.future().onComplete(testContext.failing(error -> testContext.completeNow()));
  }
@ Test public void shouldNotStartWithBadVerticle ( final Vertx vertx , final VertxTestContext testContext ) throws Exception { doReturn ( new Class [ ] { DummyWorkerVerticle . class , NoStartVerticle . class } ) . when ( this . verticle ) . getVerticleClassesToDeploy ( ) ; doReturn ( new JsonObject ( ) ) . when ( this . verticle ) . config ( ) ; doReturn ( vertx ) . when ( this . verticle ) . getVertx ( ) ; final Promise < Void > startPromise = Promise . promise ( ) ; this . verticle . start ( startPromise ) ; startPromise . future ( ) . onComplete ( testContext . failing ( error -> testContext . completeNow ( ) ) ) ; }
Check that not start with bad verticle.
Check that not start with bad verticle .