vertx/src/test/java/eu/internetofus/common/vertx/AbstractMainTest.java
/**
   * Verify print start error message.
   *
   * @param stream captured system err stream.
   */
Verify print start error message.
@param stream captured system err stream.
Verify print start error message . @param stream captured system err stream .
@Test
  @ExtendWith(SystemErrGuard.class)
  public void shouldPrintStartError(final Capturable stream) {
    stream.capture();
    final var message = "Cannot start server.";
    this.main.printStartError(new Throwable(message));
    final var data = stream.getCapturedData();
    assertThat(data).contains(Level.ERROR.name(), message, this.main.getModuleName());
  }
@ Test @ ExtendWith ( SystemErrGuard . class ) public void shouldPrintStartError ( final Capturable stream ) { stream . capture ( ) ; final var message = "Cannot start server." ; this . main . printStartError ( new Throwable ( message ) ) ; final var data = stream . getCapturedData ( ) ; assertThat ( data ) . contains ( Level . ERROR . name ( ) , message , this . main . getModuleName ( ) ) ; }
Verify print start error message.
Verify print start error message .