
com.undefinedlabs.scope.tests.ParameterizedTestDataKey Maven / Gradle / Ivy
package com.undefinedlabs.scope.tests;
import java.util.Objects;
public class ParameterizedTestDataKey {
private final String className;
private final String methodName;
private final String iteration;
public ParameterizedTestDataKey(
final String className, final String methodName, final String iteration) {
this.className = className;
this.methodName = methodName;
this.iteration = iteration;
}
public String getClassName() {
return className;
}
public String getMethodName() {
return methodName;
}
public String getIteration() {
return iteration;
}
@Override
public boolean equals(final Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
final ParameterizedTestDataKey that = (ParameterizedTestDataKey) o;
return Objects.equals(className, that.className)
&& Objects.equals(methodName, that.methodName)
&& Objects.equals(iteration, that.iteration);
}
@Override
public int hashCode() {
return Objects.hash(className, methodName, iteration);
}
@Override
public String toString() {
final StringBuilder sb = new StringBuilder("ParameterizedTestDataKey{");
sb.append("className='").append(className).append('\'');
sb.append(", methodName='").append(methodName).append('\'');
sb.append(", iteration='").append(iteration).append('\'');
sb.append('}');
return sb.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy