Search in sources :

Example 1 with Matchable

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

Example 2 with Matchable

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

Example 3 with Matchable

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

Example 4 with Matchable

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

Example 5 with Matchable

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();
}
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)22 DbStorage (com.axway.ats.rbv.db.DbStorage)22 Matchable (com.axway.ats.rbv.storage.Matchable)22 Test (org.junit.Test)22 BaseTest (com.axway.ats.rbv.BaseTest)14 Monitor (com.axway.ats.rbv.Monitor)8 SimpleMonitorListener (com.axway.ats.rbv.SimpleMonitorListener)8 MockDbProvider (com.axway.ats.rbv.db.MockDbProvider)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)3 MetaData (com.axway.ats.rbv.MetaData)2