components/src/test/java/eu/internetofus/common/components/Containers.java
/**
   * Start the profile manager container if it is not started yet.
   *
   * @return this containers instance.
   */
Start the profile manager container if it is not started yet.
@return this containers instance.
Start the profile manager container if it is not started yet . @return this containers instance .
@SuppressWarnings("resource")
  public Containers startProfileManagerContainer() {
    if (this.profileManagerContainer == null) {
      Logger.trace("Starting Profile Manager");
      this.profileManagerContainer = new WeNetComponentContainer<>(WENET_PROFILE_MANAGER_DOCKER_NAME,
          this.profileManagerApiPort).with(this)
              .withEnv("WENET_PROFILE_DIVERSITY_MANAGER_API", this.getProfileDiversityManagerApi())
              .withEnv("WENET_TASK_MANAGER_API", this.getTaskManagerApi())
              .withEnv("WENET_SERVICE_API", this.service.getApiUrl())
              .withEnv("WENET_SOCIAL_CONTEXT_BUILDER_API", this.socialContextBuilder.getApiUrl())
              .withEnv("COMP_AUTH_KEY", DEFAULT_WENET_COMPONENT_APIKEY).waitingFor(Wait.forListeningPort());
      this.profileManagerContainer.start();
      Logger.trace("Started Profile Manager");
    }
    return this;
  }
@ SuppressWarnings ( "resource" ) public Containers startProfileManagerContainer ( ) { if ( this . profileManagerContainer == null ) { Logger . trace ( "Starting Profile Manager" ) ; this . profileManagerContainer = new WeNetComponentContainer < > ( WENET_PROFILE_MANAGER_DOCKER_NAME , this . profileManagerApiPort ) . with ( this ) . withEnv ( "WENET_PROFILE_DIVERSITY_MANAGER_API" , this . getProfileDiversityManagerApi ( ) ) . withEnv ( "WENET_TASK_MANAGER_API" , this . getTaskManagerApi ( ) ) . withEnv ( "WENET_SERVICE_API" , this . service . getApiUrl ( ) ) . withEnv ( "WENET_SOCIAL_CONTEXT_BUILDER_API" , this . socialContextBuilder . getApiUrl ( ) ) . withEnv ( "COMP_AUTH_KEY" , DEFAULT_WENET_COMPONENT_APIKEY ) . waitingFor ( Wait . forListeningPort ( ) ) ; this . profileManagerContainer . start ( ) ; Logger . trace ( "Started Profile Manager" ) ; } return this ; }
Start the profile manager container if it is not started yet.
Start the profile manager container if it is not started yet .