org.testobject.rest.api.model.TestToRun Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of testobject-java-api Show documentation
Show all versions of testobject-java-api Show documentation
java wrapper for testobject's java apis
package org.testobject.rest.api.model;
import java.util.Objects;
public class TestToRun {
private final String testClass;
private final String testMethod;
public TestToRun(String testClass, String testMethod) {
this.testClass = testClass;
this.testMethod = testMethod;
}
public TestToRun(String testClass) {
this.testClass = testClass;
this.testMethod = null;
}
public String getTestClass() {
return testClass;
}
public String getTestMethod() {
return testMethod;
}
@Override
public boolean equals(Object other) {
if (this == other)
return true;
if (other == null || getClass() != other.getClass())
return false;
TestToRun otherTestToRun = (TestToRun) other;
return Objects.equals(testClass, otherTestToRun.testClass) &&
Objects.equals(testMethod, otherTestToRun.testMethod);
}
@Override
public int hashCode() {
return Objects.hash(testClass, testMethod);
}
@Override
public String toString() {
return "TestToRun{" +
"testClass='" + testClass + '\'' +
", testMethod='" + testMethod + '\'' +
'}';
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy