All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.metaloom.test.container.provider.server.ProviderRequest Maven / Gradle / Ivy

There is a newer version: 0.1.4
Show newest version
package io.metaloom.test.container.provider.server;

public record ProviderRequest(String poolId, String testName) {

  public static ProviderRequest from(String id) {
    if (!id.contains("/")) {
      throw new ServerError("Id must contain pool name. Got: " + id);
    }
    String[] parts = id.split("/");
    String poolId = parts[0];
    String testName = parts[1];
    return new ProviderRequest(poolId, testName);
  }

  public String toString() {
    return poolId + " / " + testName;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy