io.metaloom.test.container.provider.server.ProviderRequest Maven / Gradle / Ivy
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