From afe88363f70903f207a25edab27e7adcb9fc66e0 Mon Sep 17 00:00:00 2001
From: Nicolas Capponi <nicolas.capponi@forgerock.com>
Date: Fri, 09 Sep 2016 09:45:24 +0000
Subject: [PATCH] OPENDJ-3089 Fix calls to server Schema methods that are not available in SDK Schema
---
opendj-server-legacy/src/test/java/org/opends/server/TestCaseUtils.java | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/opendj-server-legacy/src/test/java/org/opends/server/TestCaseUtils.java b/opendj-server-legacy/src/test/java/org/opends/server/TestCaseUtils.java
index 08fd8b7..76663c9 100644
--- a/opendj-server-legacy/src/test/java/org/opends/server/TestCaseUtils.java
+++ b/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);
}
--
Gitblit v1.10.0