Пример #1
0
 /** {@inheritDoc} */
 @Override
 protected void tearDown() throws Exception {
   if (storageSystem != null) {
     storageSystem.close();
   }
   super.tearDown();
 }
Пример #2
0
  /** {@inheritDoc} */
  @Override
  protected void setUp() throws Exception {
    super.setUp();

    baseDir = new File(getTmpDirectory(), getClass().getSimpleName());
    FileSystemUtils.ensureDirectoryExists(baseDir);
    FileSystemUtils.deleteRecursively(baseDir);
    FileSystemUtils.ensureDirectoryExists(baseDir);

    storageSystem = openStorage(baseDir);
    store = storageSystem.openStore(STORE);

    callback = new CollectingCallBack();
  }