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

Nicolas Capponi
24.31.2016 73d88be801a676244bd429e223d217c688291f02
opendj-server-legacy/src/test/java/org/opends/server/TestCaseUtils.java
@@ -80,7 +80,7 @@
import org.forgerock.opendj.ldap.ByteString;
import org.forgerock.opendj.ldap.DN;
import org.forgerock.opendj.ldap.ResultCode;
import org.opends.server.api.Backend;
import org.opends.server.api.LocalBackend;
import org.opends.server.api.WorkQueue;
import org.opends.server.api.plugin.PluginType;
import org.opends.server.backends.MemoryBackend;
@@ -628,7 +628,7 @@
  private static void clearJEBackends() throws Exception
  {
    for (Backend<?> backend : DirectoryServer.getBackends())
    for (LocalBackend<?> backend : DirectoryServer.getBackends())
    {
      if (backend instanceof BackendImpl) {
        clearBackend(backend.getBackendID());
@@ -929,7 +929,7 @@
   */
  public static void clearBackend(String backendId, String baseDN) throws Exception
  {
    Backend<?> b = DirectoryServer.getBackend(backendId);
    LocalBackend<?> b = DirectoryServer.getBackend(backendId);
    if (clearBackend(b) && baseDN != null)
    {
      Entry e = createEntry(DN.valueOf(baseDN));
@@ -937,7 +937,7 @@
    }
  }
  private static boolean clearBackend(Backend<?> b)
  private static boolean clearBackend(LocalBackend<?> b)
  {
    if (b instanceof BackendImpl)
    {