com.shaft.validation.ValidationEnums Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of SHAFT_ENGINE Show documentation
Show all versions of SHAFT_ENGINE Show documentation
SHAFT is a unified test automation engine. Powered by best-in-class frameworks, SHAFT provides a
wizard-like syntax to drive your automation efficiently, maximize your ROI, and minimize your learning curve.
Stop reinventing the wheel. Upgrade now!
package com.shaft.validation;
public class ValidationEnums {
public enum ValidationType {
POSITIVE(true), NEGATIVE(false);
private final Boolean value;
ValidationType(Boolean type) {
this.value = type;
}
public boolean getValue() {
return value;
}
}
public enum ValidationComparisonType {
EQUALS(1), CONTAINS(3), MATCHES(2), CASE_INSENSITIVE(4);
private final int value;
ValidationComparisonType(int type) {
this.value = type;
}
public int getValue() {
return value;
}
}
public enum VisualValidationEngine {
EXACT_SHUTTERBUG,
EXACT_OPENCV,
EXACT_EYES,
STRICT_EYES,
CONTENT_EYES,
LAYOUT_EYES
}
public enum ValidationCategory {
HARD_ASSERT,
SOFT_ASSERT
}
public enum NumbersComparativeRelation {
GREATER_THAN(">"), GREATER_THAN_OR_EQUALS(">="), LESS_THAN("<"), LESS_THAN_OR_EQUALS("<="), EQUALS("==");
private final String value;
NumbersComparativeRelation(String type) {
this.value = type;
}
public String getValue() {
return value;
}
}
public enum ValidationState {
PASSED(true), FAILED(false);
private final Boolean value;
ValidationState(Boolean type) {
this.value = type;
}
public boolean getValue() {
return value;
}
}
}