vertx/src/test/java/eu/internetofus/common/vertx/AbstractMainTest.java
/**
   * Verify error happens when the property parameter is wrong.
   *
   * @param testContext test context over the event bus.
   * @param stream      captured system err stream.
   */
Verify error happens when the property parameter is wrong.
@param testContext test context over the event bus.
@param stream      captured system err stream.
Verify error happens when the property parameter is wrong . @param testContext test context over the event bus . @param stream captured system err stream .
@Test
  @ExtendWith(SystemErrGuard.class)
  public void shouldCaptureBadPropertyArgument(final VertxTestContext testContext, final Capturable stream) {
    stream.capture();
    this.main.startWith("-" + AbstractMain.PROPERTY_OPTION, "propertyName")
        .onComplete(testContext.failing(error -> testContext.verify(() -> {
          final var data = stream.getCapturedData();
          assertThat(data).contains(Level.ERROR.name(), Level.INFO.name());
          testContext.completeNow();
        })));
  }
@ Test @ ExtendWith ( SystemErrGuard . class ) public void shouldCaptureBadPropertyArgument ( final VertxTestContext testContext , final Capturable stream ) { stream . capture ( ) ; this . main . startWith ( "-" + AbstractMain . PROPERTY_OPTION , "propertyName" ) . onComplete ( testContext . failing ( error -> testContext . verify ( ( ) -> { final var data = stream . getCapturedData ( ) ; assertThat ( data ) . contains ( Level . ERROR . name ( ) , Level . INFO . name ( ) ) ; testContext . completeNow ( ) ; } ) ) ) ; }
Verify error happens when the property parameter is wrong.
Verify error happens when the property parameter is wrong .