Search in sources :

Example 11 with DbVerification

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();
}
Also used : DbSearchTerm(com.axway.ats.rbv.db.DbSearchTerm) DbVerification(com.axway.ats.rbv.clients.DbVerification) BaseTest(com.axway.ats.rbv.BaseTest) Test(org.junit.Test)

Example 12 with DbVerification

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();
}
Also used : DbSearchTerm(com.axway.ats.rbv.db.DbSearchTerm) DbVerification(com.axway.ats.rbv.clients.DbVerification) BaseTest(com.axway.ats.rbv.BaseTest) Test(org.junit.Test)

Example 13 with DbVerification

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();
}
Also used : DbSearchTerm(com.axway.ats.rbv.db.DbSearchTerm) DbVerification(com.axway.ats.rbv.clients.DbVerification) BaseTest(com.axway.ats.rbv.BaseTest) Test(org.junit.Test)

Example 14 with DbVerification

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();
}
Also used : DbSearchTerm(com.axway.ats.rbv.db.DbSearchTerm) DbVerification(com.axway.ats.rbv.clients.DbVerification) BaseTest(com.axway.ats.rbv.BaseTest) Test(org.junit.Test)

Example 15 with DbVerification

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();
}
Also used : DbSearchTerm(com.axway.ats.rbv.db.DbSearchTerm) Calendar(java.util.Calendar) DbVerification(com.axway.ats.rbv.clients.DbVerification) BaseTest(com.axway.ats.rbv.BaseTest) Test(org.junit.Test)

Aggregations

BaseTest (com.axway.ats.rbv.BaseTest)27 DbVerification (com.axway.ats.rbv.clients.DbVerification)27 DbSearchTerm (com.axway.ats.rbv.db.DbSearchTerm)27 Test (org.junit.Test)27 MockDbEncryptor (com.axway.ats.rbv.db.MockDbEncryptor)4 RbvException (com.axway.ats.rbv.model.RbvException)1 Calendar (java.util.Calendar)1