use of com.axway.ats.rbv.db.DbSearchTerm in project ats-framework by Axway.
the class Test_DbFolder method open.
@Test
public void open() throws RbvStorageException {
DbStorage storage = new DbStorage(new MockDbProvider());
Matchable folder = storage.getFolder(new DbSearchTerm(""));
folder.open();
}
use of com.axway.ats.rbv.db.DbSearchTerm in project ats-framework by Axway.
the class Test_DbFolder method openNegativeFolderAlreadyOpen.
@Test(expected = MatchableAlreadyOpenException.class)
public void openNegativeFolderAlreadyOpen() throws RbvStorageException {
DbStorage storage = new DbStorage(new MockDbProvider());
Matchable folder = storage.getFolder(new DbSearchTerm(""));
folder.open();
folder.open();
}
use of com.axway.ats.rbv.db.DbSearchTerm in project ats-framework by Axway.
the class Test_DbFolder method closeNegativeFolderNotOpen.
@Test(expected = MatchableNotOpenException.class)
public void closeNegativeFolderNotOpen() throws RbvStorageException {
DbStorage storage = new DbStorage(new MockDbProvider());
Matchable folder = storage.getFolder(new DbSearchTerm(""));
folder.close();
}
use of com.axway.ats.rbv.db.DbSearchTerm in project ats-framework by Axway.
the class Test_DbFolder method getMetaDataCountsSecondPolling.
@Test
public void getMetaDataCountsSecondPolling() throws Exception {
DbStorage storage = new DbStorage(new MockDbProvider());
Matchable folder = storage.getFolder(new DbSearchTerm(""));
folder.open();
folder.getNewMetaData();
folder.getNewMetaData();
assertEquals("Total DB records: 2, new DB records: 0", folder.getMetaDataCounts());
folder.close();
}
use of com.axway.ats.rbv.db.DbSearchTerm in project ats-framework by Axway.
the class Test_DbFolder method getMetaDataCounts.
@Test
public void getMetaDataCounts() throws Exception {
DbStorage storage = new DbStorage(new MockDbProvider());
Matchable folder = storage.getFolder(new DbSearchTerm(""));
folder.open();
folder.getNewMetaData();
assertEquals("Total DB records: 2, new DB records: 2", folder.getMetaDataCounts());
folder.close();
}
Aggregations