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