Search in sources :

Example 16 with DbVerification

use of com.axway.ats.rbv.clients.DbVerification in project ats-framework by Axway.

the class Test_DbVerification method checkFieldValueContainsNegative.

@Test(expected = RbvVerificationException.class)
public void checkFieldValueContainsNegative() throws RbvException {
    DbVerification fsVerification = new DbVerification(new DbSearchTerm(""), provider);
    fsVerification.checkFieldValueContains("", "key1", "val1");
    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 17 with DbVerification

use of com.axway.ats.rbv.clients.DbVerification in project ats-framework by Axway.

the class Test_DbVerification method checkFieldValueDoesNotEqualStringPositive.

@Test
public void checkFieldValueDoesNotEqualStringPositive() throws RbvException {
    DbVerification fsVerification = new DbVerification(new DbSearchTerm(""), provider);
    fsVerification.checkFieldValueDoesNotEqual("", "key1", "value");
    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 18 with DbVerification

use of com.axway.ats.rbv.clients.DbVerification in project ats-framework by Axway.

the class Test_DbVerification method checkFieldValueEqualsNumericNegative.

@Test(expected = RbvVerificationException.class)
public void checkFieldValueEqualsNumericNegative() throws RbvException {
    DbVerification fsVerification = new DbVerification(new DbSearchTerm(""), provider);
    fsVerification.checkFieldValueEquals("numeric", "key", 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 19 with DbVerification

use of com.axway.ats.rbv.clients.DbVerification in project ats-framework by Axway.

the class Test_DbVerification method checkFieldValueRegexNegative.

@Test(expected = RbvVerificationException.class)
public void checkFieldValueRegexNegative() throws RbvException {
    DbVerification fsVerification = new DbVerification(new DbSearchTerm(""), provider);
    fsVerification.checkFieldValueRegex("", "key1", "val1.*");
    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 20 with DbVerification

use of com.axway.ats.rbv.clients.DbVerification in project ats-framework by Axway.

the class Test_DbVerification method checkFieldValueContainsPositive.

@Test
public void checkFieldValueContainsPositive() throws RbvException {
    DbVerification fsVerification = new DbVerification(new DbSearchTerm(""), provider);
    fsVerification.checkFieldValueContains("", "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)

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