Search in sources :

Example 31 with DbSearchTerm

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();
}
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 32 with DbSearchTerm

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();
}
Also used : MockDbEncryptor(com.axway.ats.rbv.db.MockDbEncryptor) 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 33 with DbSearchTerm

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

Example 34 with 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();
}
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 35 with DbSearchTerm

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

Aggregations

DbSearchTerm (com.axway.ats.rbv.db.DbSearchTerm)51 Test (org.junit.Test)50 BaseTest (com.axway.ats.rbv.BaseTest)42 DbVerification (com.axway.ats.rbv.clients.DbVerification)27 DbStorage (com.axway.ats.rbv.db.DbStorage)24 Matchable (com.axway.ats.rbv.storage.Matchable)22 MockDbProvider (com.axway.ats.rbv.db.MockDbProvider)9 Monitor (com.axway.ats.rbv.Monitor)8 SimpleMonitorListener (com.axway.ats.rbv.SimpleMonitorListener)8 DbFieldsRule (com.axway.ats.rbv.db.rules.DbFieldsRule)8 DbStringFieldRule (com.axway.ats.rbv.db.rules.DbStringFieldRule)8 ArrayList (java.util.ArrayList)8 PollingParameters (com.axway.ats.rbv.PollingParameters)4 MockDbEncryptor (com.axway.ats.rbv.db.MockDbEncryptor)4 MetaData (com.axway.ats.rbv.MetaData)2 RbvException (com.axway.ats.rbv.model.RbvException)1 Calendar (java.util.Calendar)1 Before (org.junit.Before)1