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/TestEntryContainer.java
@@ -35,6 +35,7 @@
import java.util.ArrayList;
import org.opends.server.SchemaFixture;
import org.opends.server.TestCaseUtils;
import org.opends.server.types.Entry;
import org.opends.server.types.LDIFImportConfig;
import org.opends.server.util.LDIFReader;
@@ -114,6 +115,7 @@
      + "cn;lang-en: Rodney Ogasawara\n"
      + "title;lang-en: Sales, Director\n" + "\n" + "";
  private File tempDir;
  private String homeDirName;
  private ArrayList<Entry> entryList;
@@ -131,9 +133,8 @@
    // This test suite depends on having the schema available.
    SchemaFixture.FACTORY.setUp();
    File tempFile = File.createTempFile("jebtest", "");
    tempFile.delete();
    homeDirName = tempFile.getAbsolutePath();
    tempDir = TestCaseUtils.createTemporaryDirectory("jebtest");
    homeDirName = tempDir.getAbsolutePath();
    // Convert the test LDIF string to a byte array
    ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
@@ -169,8 +170,7 @@
  public void tearDown() throws Exception {
    SchemaFixture.FACTORY.tearDown();
    File homeDir = new File(homeDirName);
    homeDir.delete();
    TestCaseUtils.deleteDirectory(tempDir);
  }
  /**