Search in sources :

Example 1 with BerkeleyJEStoreManager

use of com.thinkaurelius.titan.diskstorage.berkeleyje.BerkeleyJEStoreManager in project titan by thinkaurelius.

the class BerkeleyJEBlueprintsTest method cleanUp.

@Override
public void cleanUp() throws StorageException {
    synchronized (openDirs) {
        for (String dir : openDirs) {
            BaseConfiguration config = new BaseConfiguration();
            config.addProperty(GraphDatabaseConfiguration.STORAGE_DIRECTORY_KEY, dir);
            BerkeleyJEStoreManager s = new BerkeleyJEStoreManager(config);
            s.clearStorage();
            File dirFile = new File(dir);
            Assert.assertFalse(dirFile.exists() && dirFile.listFiles().length > 0);
        }
    }
}
Also used : BaseConfiguration(org.apache.commons.configuration.BaseConfiguration) BerkeleyJEStoreManager(com.thinkaurelius.titan.diskstorage.berkeleyje.BerkeleyJEStoreManager) File(java.io.File)

Aggregations

BerkeleyJEStoreManager (com.thinkaurelius.titan.diskstorage.berkeleyje.BerkeleyJEStoreManager)1 File (java.io.File)1 BaseConfiguration (org.apache.commons.configuration.BaseConfiguration)1