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/plugins/SambaPasswordPluginTestCase.java | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/opendj-server-legacy/src/test/java/org/opends/server/plugins/SambaPasswordPluginTestCase.java b/opendj-server-legacy/src/test/java/org/opends/server/plugins/SambaPasswordPluginTestCase.java
index f7a3102..177f587 100644
--- a/opendj-server-legacy/src/test/java/org/opends/server/plugins/SambaPasswordPluginTestCase.java
+++ b/opendj-server-legacy/src/test/java/org/opends/server/plugins/SambaPasswordPluginTestCase.java
@@ -247,7 +247,7 @@
private boolean contains(Entry entry, String attrName, String password)
{
boolean foundPwd = false;
- for (Attribute a : entry.getAttribute(attrName))
+ for (Attribute a : entry.getAllAttributes(attrName))
{
for (ByteString val : a)
{
@@ -338,8 +338,8 @@
Entry entry = DirectoryServer.getEntry(testEntry.getName());
assertNotNull(entry);
- assertThat(entry.getAttribute("sambantpassword")).isEmpty();
- assertThat(entry.getAttribute("sambalmpassword")).isEmpty();
+ assertThat(entry.getAllAttributes("sambantpassword")).isEmpty();
+ assertThat(entry.getAllAttributes("sambalmpassword")).isEmpty();
TestCaseUtils.deleteEntry(entry);
}
@@ -538,8 +538,8 @@
Entry entry = DirectoryServer.getEntry(testEntry.getName());
assertNotNull(entry);
- assertThat(entry.getAttribute("sambantpassword")).isEmpty();
- assertThat(entry.getAttribute("sambalmpassword")).isEmpty();
+ assertThat(entry.getAllAttributes("sambantpassword")).isEmpty();
+ assertThat(entry.getAllAttributes("sambalmpassword")).isEmpty();
TestCaseUtils.deleteEntry(entry);
}
@@ -786,7 +786,7 @@
Attribute sambaPwdLastSetAttr =
Attributes.create("sambapwdlastset", String.valueOf(1339012789L));
- assertThat(entry.getAttribute("sambapwdlastset")).contains(sambaPwdLastSetAttr);
+ assertThat(entry.getAllAttributes("sambapwdlastset")).contains(sambaPwdLastSetAttr);
TestCaseUtils.deleteEntry(testEntry);
}
finally
--
Gitblit v1.10.0