Exemplo n.º 1
0
  @Override
  public void tearDown() throws Exception {

    if (store != null) {
      try {
        store.close();
      } catch (Throwable e) {
        System.out.println("tearDown: " + e);
      }
      store = null;
    }
    super.tearDown();
  }
Exemplo n.º 2
0
  /** The store must be closed before closing the environment. */
  @After
  public void tearDown() throws Exception {

    try {
      if (rawStore != null) {
        rawStore.close();
      }
    } catch (Throwable e) {
      System.out.println("During tearDown: " + e);
    }
    try {
      if (store != null) {
        store.close();
      }
    } catch (Throwable e) {
      System.out.println("During tearDown: " + e);
    }
    store = null;
    rawStore = null;
    super.tearDown();
  }
Exemplo n.º 3
0
  @Override
  public void setUp() throws Exception {

    super.setUp();
  }