use of com.axway.ats.rbv.clients.DbVerification in project ats-framework by Axway.
the class Test_DbVerification method checkFieldValueRegexPositive.
@Test
public void checkFieldValueRegexPositive() throws RbvException {
DbVerification fsVerification = new DbVerification(new DbSearchTerm(""), provider);
fsVerification.checkFieldValueRegex("", "key1", "val.*");
fsVerification.verifyDbDataExists();
}
use of com.axway.ats.rbv.clients.DbVerification in project ats-framework by Axway.
the class Test_DbVerification method checkFieldValueEqualsEncryptedStringNegative.
@Test(expected = RbvVerificationException.class)
public void checkFieldValueEqualsEncryptedStringNegative() throws RbvException {
DbVerification fsVerification = new DbVerification(new DbSearchTerm(""), provider);
// the mock encryptor changes all letters to capital case
fsVerification.setDbEncryptor(new MockDbEncryptor());
fsVerification.checkFieldValueEquals("", "key1", "VaLUE00");
fsVerification.verifyDbDataExists();
}
use of com.axway.ats.rbv.clients.DbVerification in project ats-framework by Axway.
the class Test_DbVerification method clearRulesTest.
@Test
public void clearRulesTest() throws RbvException {
DbVerification dbVerification = new DbVerification(new DbSearchTerm(""), provider);
try {
//adding rule with wrong value and expecting RBVException exception
dbVerification.checkFieldValueEquals("", "key1", "wrongValue");
dbVerification.verifyDbDataExists();
Assert.fail();
} catch (RbvException e) {
//this is the expected behavior
}
//clear all rules
dbVerification.clearRules();
//adding rule with existing value
dbVerification.checkFieldValueEquals("", "key1", "value00");
dbVerification.verifyDbDataExists();
}
use of com.axway.ats.rbv.clients.DbVerification in project ats-framework by Axway.
the class Test_DbVerification method checkFieldValueEqualsStringNegative.
@Test(expected = RbvVerificationException.class)
public void checkFieldValueEqualsStringNegative() throws RbvException {
DbVerification fsVerification = new DbVerification(new DbSearchTerm(""), provider);
fsVerification.checkFieldValueEquals("", "key1", "value");
fsVerification.verifyDbDataExists();
}
use of com.axway.ats.rbv.clients.DbVerification in project ats-framework by Axway.
the class Test_DbVerification method checkFieldValueDoesNotEqualNumericNegative.
@Test
public void checkFieldValueDoesNotEqualNumericNegative() throws RbvException {
DbVerification fsVerification = new DbVerification(new DbSearchTerm(""), provider);
fsVerification.checkFieldValueDoesNotEqual("numeric", "key", 0);
fsVerification.verifyDbDataExists();
}
Aggregations