use of com.axway.ats.rbv.clients.DbVerification in project ats-framework by Axway.
the class Test_DbVerification method checkFieldValueEqualsStringPositive.
@Test
public void checkFieldValueEqualsStringPositive() throws RbvException {
DbVerification fsVerification = new DbVerification(new DbSearchTerm(""), provider);
fsVerification.checkFieldValueEquals("", "key1", "value10");
fsVerification.verifyDbDataExists();
}
use of com.axway.ats.rbv.clients.DbVerification in project ats-framework by Axway.
the class Test_DbVerification method checkFieldValueDoesNotEqualBinaryPositive.
@Test
public void checkFieldValueDoesNotEqualBinaryPositive() throws RbvException {
DbVerification fsVerification = new DbVerification(new DbSearchTerm(""), provider);
fsVerification.checkFieldValueDoesNotEqual("binary", "key", new byte[] { 1, 2, 23 });
fsVerification.verifyDbDataExists();
}
use of com.axway.ats.rbv.clients.DbVerification in project ats-framework by Axway.
the class Test_DbVerification method checkFieldValueRegexDoesNotMatchNegative.
@Test(expected = RbvVerificationException.class)
public void checkFieldValueRegexDoesNotMatchNegative() throws RbvException {
DbVerification fsVerification = new DbVerification(new DbSearchTerm(""), provider);
fsVerification.checkFieldValueRegexDoesNotMatch("", "key1", "val.*");
fsVerification.verifyDbDataExists();
}
use of com.axway.ats.rbv.clients.DbVerification in project ats-framework by Axway.
the class Test_DbVerification method checkFieldValueDoesNotEqualBinaryNegative.
@Test
public void checkFieldValueDoesNotEqualBinaryNegative() throws RbvException {
DbVerification fsVerification = new DbVerification(new DbSearchTerm(""), provider);
fsVerification.checkFieldValueDoesNotEqual("binary", "key", new byte[] { 1, 2, 0 });
fsVerification.verifyDbDataExists();
}
use of com.axway.ats.rbv.clients.DbVerification in project ats-framework by Axway.
the class Test_DbVerification method checkFieldValueDatePositive.
@Test
public void checkFieldValueDatePositive() throws RbvException {
DbVerification verificator = new DbVerification(new DbSearchTerm(""), provider);
Calendar calendar = Calendar.getInstance();
calendar.set(Calendar.MINUTE, 0);
calendar.set(Calendar.SECOND, 0);
calendar.set(Calendar.MILLISECOND, 0);
verificator.checkFieldValueEquals("Date", "today", calendar.getTime());
verificator.verifyDbDataExists();
}
Aggregations