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/replication/UpdateOperationTest.java |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/opendj-server-legacy/src/test/java/org/opends/server/replication/UpdateOperationTest.java b/opendj-server-legacy/src/test/java/org/opends/server/replication/UpdateOperationTest.java
index 1a770e7..7d2e19f 100644
--- a/opendj-server-legacy/src/test/java/org/opends/server/replication/UpdateOperationTest.java
+++ b/opendj-server-legacy/src/test/java/org/opends/server/replication/UpdateOperationTest.java
@@ -459,7 +459,7 @@
 
       // Read the entry back to get its UUID.
       Entry entry = DirectoryServer.getEntry(dn1);
-      List<Attribute> attrs = entry.getAttribute(entryuuidType);
+      List<Attribute> attrs = entry.getAllAttributes(entryuuidType);
       String entryuuid = attrs.get(0).iterator().next().toString();
 
       // A change on a first server.
@@ -491,7 +491,7 @@
 
       // Read the entry to see how the conflict was resolved.
       entry = DirectoryServer.getEntry(dn1);
-      attrs = entry.getAttribute(attrType);
+      attrs = entry.getAllAttributes(attrType);
       String attrValue1 = attrs.get(0).iterator().next().toString();
 
       // the value should be the last (time t2) value added
@@ -529,7 +529,7 @@
 
       // Read the entry to see how the conflict was resolved.
       entry = DirectoryServer.getEntry(dn1);
-      attrs = entry.getAttribute(attrType);
+      attrs = entry.getAllAttributes(attrType);
 
       // there should not be a value (delete at time t2)
       assertNull(attrs);
@@ -1087,7 +1087,7 @@
    */
   private boolean assertConflictAttributeExists(Entry entry)
   {
-    return !entry.getAttribute("ds-sync-confict").isEmpty();
+    return !entry.getAllAttributes("ds-sync-confict").isEmpty();
   }
 
   @DataProvider(name="assured")

--
Gitblit v1.10.0