mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

coulbeck
10.58.2006 8af1e5eb227ef16d40d47c08bd09c1bd2fccf134
opends/tests/unit-tests-testng/src/server/org/opends/server/backends/jeb/TestEnvManager.java
@@ -34,6 +34,7 @@
import org.testng.annotations.ExpectedExceptions;
import org.testng.annotations.Test;
import org.opends.server.TestCaseUtils;
import com.sleepycat.je.Environment;
import com.sleepycat.je.EnvironmentConfig;
@@ -41,6 +42,7 @@
 * EnvManager Tester.
 */
public class TestEnvManager extends JebTestCase {
  private File tempDir;
  private String homeDirName;
  /**
@@ -51,9 +53,8 @@
   */
  @Configuration(beforeTestClass = true)
  public void setUp() throws Exception {
    File tempFile = File.createTempFile("jebtest", "");
    tempFile.delete();
    homeDirName = tempFile.getAbsolutePath();
    tempDir = TestCaseUtils.createTemporaryDirectory("jebtest");
    homeDirName = tempDir.getAbsolutePath();
  }
  /**
@@ -64,8 +65,7 @@
   */
  @Configuration(afterTestClass = true)
  public void tearDown() throws Exception {
    File homeDir = new File(homeDirName);
    homeDir.delete();
    TestCaseUtils.deleteDirectory(tempDir);
  }
  /**