use of com.axway.ats.rbv.db.rules.DbStringFieldRule in project ats-framework by Axway.
the class DbVerification method checkFieldValueEquals.
/**
* Add rule to check that the value of the given field is the same as the given one
*
* @param tableName the name of the table which the field is part of
* @param fieldName the field to check
* @param value the value expected (string)
*/
@PublicAtsApi
public void checkFieldValueEquals(String tableName, String fieldName, String value) {
DbStringFieldRule matchingRule = new DbStringFieldRule(tableName, fieldName, value, DbStringFieldRule.MatchRelation.EQUALS, "checkFieldValueEquals", true);
matchingRule.setDbEncryptor(dbEncryptor);
checkFieldValue(matchingRule);
}
use of com.axway.ats.rbv.db.rules.DbStringFieldRule in project ats-framework by Axway.
the class DbVerification method checkFieldValueRegex.
/**
* Add rule to check that the value of the given field is matched by the given regular expressions
*
* @param tableName the name of the table which the field is part of
* @param fieldName the field to check
* @param regex
*/
@PublicAtsApi
public void checkFieldValueRegex(String tableName, String fieldName, String regex) {
DbStringFieldRule matchingRule = new DbStringFieldRule(tableName, fieldName, regex, DbStringFieldRule.MatchRelation.REGEX_MATCH, "checkFieldValueRegex", true);
matchingRule.setDbEncryptor(dbEncryptor);
checkFieldValue(matchingRule);
}
use of com.axway.ats.rbv.db.rules.DbStringFieldRule in project ats-framework by Axway.
the class DbVerification method checkFieldValueContains.
/**
* Add rule to check that the value of the given field contains the given string
*
* @param tableName the name of the table which the field is part of
* @param fieldName the field to check
* @param value the string that should be contained in the field
*/
@PublicAtsApi
public void checkFieldValueContains(String tableName, String fieldName, String value) {
DbStringFieldRule matchingRule = new DbStringFieldRule(tableName, fieldName, value, DbStringFieldRule.MatchRelation.CONTAINS, "checkFieldValueContains", true);
matchingRule.setDbEncryptor(dbEncryptor);
checkFieldValue(matchingRule);
}
use of com.axway.ats.rbv.db.rules.DbStringFieldRule in project ats-framework by Axway.
the class DbVerification method checkFieldValueRegexDoesNotMatch.
/**
* Add rule to check that the value of the given field is not matched by the given regular expressions
*
* @param tableName the name of the table which the field is part of
* @param fieldName the field to check
* @param regex
*/
@PublicAtsApi
public void checkFieldValueRegexDoesNotMatch(String tableName, String fieldName, String regex) {
DbStringFieldRule matchingRule = new DbStringFieldRule(tableName, fieldName, regex, DbStringFieldRule.MatchRelation.REGEX_MATCH, "checkFieldValueRegexDoesNotMatch", false);
matchingRule.setDbEncryptor(dbEncryptor);
checkFieldValue(matchingRule);
}
use of com.axway.ats.rbv.db.rules.DbStringFieldRule in project ats-framework by Axway.
the class DbVerification method checkFieldValueDoesNotEqual.
/**
* Add rule to check that the value of the given field is not the same as the given one
*
* @param tableName the name of the table which the field is part of
* @param fieldName the field to check
* @param value the value expected (string)
*/
@PublicAtsApi
public void checkFieldValueDoesNotEqual(String tableName, String fieldName, String value) {
DbStringFieldRule matchingRule = new DbStringFieldRule(tableName, fieldName, value, DbStringFieldRule.MatchRelation.EQUALS, "checkFieldValueDoesNotEqual", false);
matchingRule.setDbEncryptor(dbEncryptor);
checkFieldValue(matchingRule);
}
Aggregations