use of com.axway.ats.rbv.db.DbSearchTerm 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.db.DbSearchTerm 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.db.DbSearchTerm in project ats-framework by Axway.
the class Test_DbStorage method getFolderWithSearchTerm.
@Test
public void getFolderWithSearchTerm() throws RbvStorageException {
DbStorage storage = new DbStorage(new MockDbProvider());
assertNotNull(storage.getFolder(new DbSearchTerm("")));
}
use of com.axway.ats.rbv.db.DbSearchTerm in project ats-framework by Axway.
the class Test_DbVerification method checkFieldValueDoesNotEqualStringNegative.
@Test
public void checkFieldValueDoesNotEqualStringNegative() throws RbvException {
DbVerification fsVerification = new DbVerification(new DbSearchTerm(""), provider);
fsVerification.checkFieldValueDoesNotEqual("", "key1", "value1");
fsVerification.verifyDbDataExists();
}
use of com.axway.ats.rbv.db.DbSearchTerm in project ats-framework by Axway.
the class Test_DbFolder method getDescription.
@Test
public void getDescription() throws RbvException {
DbStorage storage = new DbStorage(new MockDbProvider());
Matchable folder = storage.getFolder(new DbSearchTerm(""));
folder.getDescription();
}
Aggregations