use of com.axway.ats.rbv.db.DbSearchTerm 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.db.DbSearchTerm 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.db.DbSearchTerm 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();
}
use of com.axway.ats.rbv.db.DbSearchTerm in project ats-framework by Axway.
the class Test_DbFolder method close.
@Test
public void close() throws RbvStorageException {
DbStorage storage = new DbStorage(new MockDbProvider());
Matchable folder = storage.getFolder(new DbSearchTerm(""));
folder.open();
folder.close();
}
use of com.axway.ats.rbv.db.DbSearchTerm in project ats-framework by Axway.
the class Test_DbFolder method getAllMetaDataNegativeFolderNotOpen.
@Test(expected = MatchableNotOpenException.class)
public void getAllMetaDataNegativeFolderNotOpen() throws RbvException {
DbStorage storage = new DbStorage(new MockDbProvider());
Matchable folder = storage.getFolder(new DbSearchTerm(""));
folder.getAllMetaData();
}
Aggregations