com.ats.generator.variables.beans.Property Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ats-automated-testing Show documentation
Show all versions of ats-automated-testing Show documentation
Code generator library to create and execute GUI automated tests
The newest version!
package com.ats.generator.variables.beans;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
public class Property {
private String operator;
private String name;
private String expected;
public Property(String name, String operator, String expected) {
this.name = name;
this.operator = operator;
this.expected = expected;
}
public String getOperator() {
return operator;
}
public String getName() {
return name;
}
public String getExpected() {
return expected;
}
public String toJson() {
ObjectMapper objectMapper = new ObjectMapper();
try {
return objectMapper.writeValueAsString(this);
} catch (JsonProcessingException e) {
return "";
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy