use of com.axway.ats.rbv.db.DbSearchTerm in project ats-framework by Axway.
the class Test_DbFolder method getNewMetaData.
@Test
public void getNewMetaData() throws Exception {
DbStorage storage = new DbStorage(new MockDbProvider());
Matchable folder = storage.getFolder(new DbSearchTerm(""));
folder.open();
List<MetaData> metaData = folder.getNewMetaData();
assertEquals(2, metaData.size());
folder.close();
}
use of com.axway.ats.rbv.db.DbSearchTerm in project ats-framework by Axway.
the class Test_DbVerification method checkFieldValueEqualsNumericPositive.
@Test
public void checkFieldValueEqualsNumericPositive() throws RbvException {
DbVerification fsVerification = new DbVerification(new DbSearchTerm(""), provider);
fsVerification.checkFieldValueEquals("numeric", "key", 0);
fsVerification.verifyDbDataExists();
}
use of com.axway.ats.rbv.db.DbSearchTerm in project ats-framework by Axway.
the class Test_DbVerification method checkFieldValueEqualsBinaryPositive.
@Test
public void checkFieldValueEqualsBinaryPositive() throws RbvException {
DbVerification fsVerification = new DbVerification(new DbSearchTerm(""), provider);
fsVerification.checkFieldValueEquals("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 checkFieldValueEqualsBinaryNegative.
@Test(expected = RbvVerificationException.class)
public void checkFieldValueEqualsBinaryNegative() throws RbvException {
DbVerification fsVerification = new DbVerification(new DbSearchTerm(""), provider);
fsVerification.checkFieldValueEquals("binary", "key", new byte[] { 1 });
fsVerification.verifyDbDataExists();
}
use of com.axway.ats.rbv.db.DbSearchTerm in project ats-framework by Axway.
the class Test_DbVerification method checkDencryptorIsUnsetPositive.
@Test
public void checkDencryptorIsUnsetPositive() throws RbvException {
DbVerification fsVerification = new DbVerification(new DbSearchTerm(""), provider);
fsVerification.checkFieldValueEquals("asd", "key0", "value00");
// the mock encryptor changes all letters to capital case
fsVerification.setDbEncryptor(new MockDbEncryptor());
fsVerification.checkFieldValueEquals("", "key1", "VALUE00");
// remove the encryptor
fsVerification.setDbEncryptor(null);
fsVerification.checkFieldValueEquals("", "key2", "value00");
fsVerification.verifyDbDataExists();
}
Aggregations