com.testfabrik.webmate.javasdk.testmgmt.TestResultCategory Maven / Gradle / Ivy
package com.testfabrik.webmate.javasdk.testmgmt;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.Objects;
/**
* Category of TestResult, e.g. LayoutComparison.
*/
public class TestResultCategory {
private final String name;
@JsonCreator
public TestResultCategory(String name) {
this.name = name;
}
@JsonValue
public String getName() {
return name;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
TestResultCategory that = (TestResultCategory) o;
return name.equals(that.name);
}
@Override
public int hashCode() {
return Objects.hash(name);
}
@Override
public String toString() {
return "TestResultCategory{" +
"name='" + name + '\'' +
'}';
}
}