use of com.axway.ats.rbv.storage.Matchable 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.storage.Matchable 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();
}
use of com.axway.ats.rbv.storage.Matchable 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.storage.Matchable 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.storage.Matchable 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();
}
Aggregations