From d89c47e7cb1b3c9181e25582539aac1dedb46099 Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Mon, 08 Aug 2016 07:31:25 +0000
Subject: [PATCH] Partial OPENDJ-3106 Migrate Entry

---
 opendj-server-legacy/src/test/java/org/opends/server/backends/ChangelogBackendTestCase.java |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/opendj-server-legacy/src/test/java/org/opends/server/backends/ChangelogBackendTestCase.java b/opendj-server-legacy/src/test/java/org/opends/server/backends/ChangelogBackendTestCase.java
index 5eb0f34..7dc5085 100644
--- a/opendj-server-legacy/src/test/java/org/opends/server/backends/ChangelogBackendTestCase.java
+++ b/opendj-server-legacy/src/test/java/org/opends/server/backends/ChangelogBackendTestCase.java
@@ -943,7 +943,7 @@
   private String readCookieFromNthEntry(List<SearchResultEntry> entries, int i)
   {
     SearchResultEntry entry = entries.get(i);
-    return entry.getAttribute("changelogcookie").get(0).iterator().next().toString();
+    return entry.getAllAttributes("changelogcookie").get(0).iterator().next().toString();
   }
 
   private String assertEntriesContainsCSNsAndReadLastCookie(String test, List<SearchResultEntry> entries,
@@ -1403,7 +1403,7 @@
   private static void assertAttributeValues(Entry entry, String attrName, Set<String> expectedValues)
   {
     final Set<String> values = new HashSet<>();
-    for (Attribute attr : entry.getAttribute(attrName))
+    for (Attribute attr : entry.getAllAttributes(attrName))
     {
       for (ByteString value : attr)
       {
@@ -1479,7 +1479,7 @@
 
   private static String getAttributeValue(Entry entry, String attrName)
   {
-    List<Attribute> attrs = entry.getAttribute(attrName);
+    List<Attribute> attrs = entry.getAllAttributes(attrName);
     if (attrs.isEmpty())
     {
       return null;

--
Gitblit v1.10.0