From 1b570922c1772fde4fbd44855453dbd86bb9e276 Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Tue, 29 Mar 2016 16:17:05 +0000
Subject: [PATCH] Prep work for OPENDJ-2803 Migrate Attribute
---
opendj-server-legacy/src/test/java/org/opends/server/admin/client/ldap/MockLDAPConnection.java | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/opendj-server-legacy/src/test/java/org/opends/server/admin/client/ldap/MockLDAPConnection.java b/opendj-server-legacy/src/test/java/org/opends/server/admin/client/ldap/MockLDAPConnection.java
index 53ceb6c..b7b9709 100644
--- a/opendj-server-legacy/src/test/java/org/opends/server/admin/client/ldap/MockLDAPConnection.java
+++ b/opendj-server-legacy/src/test/java/org/opends/server/admin/client/ldap/MockLDAPConnection.java
@@ -290,7 +290,7 @@
// We now have the parent entry - so construct the new entry.
Attributes attributes = new BasicAttributes();
for (org.opends.server.types.Attribute attribute : entry.getAttributes()) {
- BasicAttribute ba = new BasicAttribute(attribute.getName());
+ BasicAttribute ba = new BasicAttribute(attribute.getAttributeDescription().getNameOrOID());
for (ByteString value : attribute) {
ba.add(value.toString());
}
--
Gitblit v1.10.0