components/src/test/java/eu/internetofus/common/components/Containers.java
/**
   * Return the URL to access the module defined on a container.
   *
   * @param container where is started the module.
   * @param port      where the API is bind.
   *
   * @return the URL to the module API.
   */
Return the URL to access the module defined on a container.
@param container where is started the module.
@param port      where the API is bind.

@return the URL to the module API.
Return the URL to access the module defined on a container . @param container where is started the module . @param port where the API is bind . @return the URL to the module API .
protected String createApiFor(final WeNetComponentContainer<?> container, final int port) {
    final var builder = new StringBuilder();
    builder.append("http://");
    if (container != null) {
      builder.append(container.getHost());
    } else {
      builder.append("host.testcontainers.internal");
    }
    builder.append(":");
    builder.append(port);
    return builder.toString();
  }
protected String createApiFor ( final WeNetComponentContainer < ? > container , final int port ) { final var builder = new StringBuilder ( ) ; builder . append ( "http://" ) ; if ( container != null ) { builder . append ( container . getHost ( ) ) ; } else { builder . append ( "host.testcontainers.internal" ) ; } builder . append ( ":" ) ; builder . append ( port ) ; return builder . toString ( ) ; }
Return the URL to access the module defined on a container.
Return the URL to access the module defined on a container .