From 1df4f51adf614210ca4a9b9728327090ec5ea264 Mon Sep 17 00:00:00 2001
From: Gaetan Boismal <gaetan.boismal@forgerock.com>
Date: Fri, 11 Sep 2015 20:33:53 +0000
Subject: [PATCH] OPENDJ-1666 PR-19 CREST-3.0.0 Migration
---
opendj-rest2ldap/src/test/java/org/forgerock/opendj/rest2ldap/TestUtils.java | 20 +++++++++-----------
1 files changed, 9 insertions(+), 11 deletions(-)
diff --git a/opendj-rest2ldap/src/test/java/org/forgerock/opendj/rest2ldap/TestUtils.java b/opendj-rest2ldap/src/test/java/org/forgerock/opendj/rest2ldap/TestUtils.java
index cef00f4..a3aa64c 100644
--- a/opendj-rest2ldap/src/test/java/org/forgerock/opendj/rest2ldap/TestUtils.java
+++ b/opendj-rest2ldap/src/test/java/org/forgerock/opendj/rest2ldap/TestUtils.java
@@ -15,20 +15,18 @@
*/
package org.forgerock.opendj.rest2ldap;
-import static org.forgerock.json.fluent.JsonValue.json;
+import static org.forgerock.json.JsonValue.json;
import java.util.ArrayList;
import java.util.List;
-import org.forgerock.json.fluent.JsonPointer;
-import org.forgerock.json.fluent.JsonValue;
-import org.forgerock.json.resource.Resource;
-import org.forgerock.json.resource.RootContext;
+import org.forgerock.http.context.RootContext;
+import org.forgerock.json.JsonPointer;
+import org.forgerock.json.JsonValue;
+import org.forgerock.json.resource.ResourceResponse;
+import org.forgerock.json.resource.Responses;
-/**
- * Unit test utility methods, including fluent methods for creating JSON
- * objects.
- */
+/** Unit test utility methods, including fluent methods for creating JSON objects. */
public final class TestUtils {
/**
@@ -39,8 +37,8 @@
* The JSON content.
* @return A {@code Resource} containing the provided JSON content.
*/
- public static Resource asResource(final JsonValue content) {
- return new Resource(content.get("_id").asString(), content.get("_rev").asString(), content);
+ public static ResourceResponse asResource(final JsonValue content) {
+ return Responses.newResourceResponse(content.get("_id").asString(), content.get("_rev").asString(), content);
}
/**
--
Gitblit v1.10.0