
com.onevizion.uitest.api.vo.entity.Validation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ui-test-api Show documentation
Show all versions of ui-test-api Show documentation
An API for easily write tests for OneVizion platform
The newest version!
package com.onevizion.uitest.api.vo.entity;
import com.onevizion.uitest.api.exception.SeleniumUnexpectedException;
public class Validation {
private String name;
private String pattern;
private String errorMessage;
private Validation() {
}
public static Builder newBuilder() {
return new Validation().new Builder();
}
public String getName() {
return name;
}
public String getPattern() {
return pattern;
}
public String getErrorMessage() {
return errorMessage;
}
public class Builder {
private Builder() {
}
public Validation build() {
if (Validation.this.name == null ||
Validation.this.pattern == null ||
Validation.this.errorMessage == null) {
throw new SeleniumUnexpectedException("");
}
return Validation.this;
}
public Builder setName(String name) {
Validation.this.name = name;
return this;
}
public Builder setPattern(String pattern) {
Validation.this.pattern = pattern;
return this;
}
public Builder setErrorMessage(String errorMessage) {
Validation.this.errorMessage = errorMessage;
return this;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy