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

Nicolas Capponi
16.32.2016 afe88363f70903f207a25edab27e7adcb9fc66e0
opendj-server-legacy/src/test/java/org/opends/server/TestCaseUtils.java
@@ -238,7 +238,7 @@
  public static void startFakeServer() throws Exception
  {
    schemaBeforeStartingFakeServer = DirectoryServer.getSchema();
    DirectoryServer.setSchema(new Schema(org.forgerock.opendj.ldap.schema.Schema.getDefaultSchema()));
    DirectoryServer.setSchema(Schema.getDefaultSchema());
  }
  /**
@@ -747,9 +747,11 @@
  /**
   * Undo all the setup done by #startFakeServer().
   *
   * @throws DirectoryException
   *            If the initial schema contains warning
   * @see #startFakeServer() Matching method that starts the fake server
   */
  public static void shutdownFakeServer()
  public static void shutdownFakeServer() throws DirectoryException
  {
    DirectoryServer.setSchema(schemaBeforeStartingFakeServer);
  }