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

Jean-Noël Rouvignac
16.44.2015 9aa1482c49865483f798f91ef7d16f03cc3ec811
opendj-server-legacy/src/test/java/org/opends/server/TestCaseUtils.java
@@ -557,7 +557,7 @@
  {
    for (Backend<?> backend : DirectoryServer.getBackends().values()) {
      if (backend instanceof BackendImpl) {
        clearJEBackend(backend.getBackendID());
        clearBackend(backend.getBackendID());
      }
    }
  }
@@ -830,23 +830,23 @@
  }
  /**
   * Clears all the entries from the JE backend determined by the backend id passed into the method.
   * Clears all the entries from the backend determined by the backend id passed into the method.
   *
   * @throws Exception If an unexpected problem occurs.
   */
  public static void clearJEBackend(String backendId) throws Exception
  public static void clearBackend(String backendId) throws Exception
  {
    clearJEBackend(backendId, null);
    clearBackend(backendId, null);
  }
  /**
   * Clears all the entries from the JE backend determined by the backend id passed into the method.
   * Clears all the entries from the backend determined by the backend id passed into the method.
   *
   * @param backendId  The backend id to clear
   * @param baseDN   If not null, the suffix of the backend to create
   * @throws  Exception  If an unexpected problem occurs.
   */
  public static void clearJEBackend(String backendId, String baseDN) throws Exception
  public static void clearBackend(String backendId, String baseDN) throws Exception
  {
    Backend<?> b = DirectoryServer.getBackend(backendId);
    if (clearBackend(b) && baseDN != null)