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/tools/LDIFSearchTestCase.java | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/opendj-server-legacy/src/test/java/org/opends/server/tools/LDIFSearchTestCase.java b/opendj-server-legacy/src/test/java/org/opends/server/tools/LDIFSearchTestCase.java
index c9d8950..0a3b2cd 100644
--- a/opendj-server-legacy/src/test/java/org/opends/server/tools/LDIFSearchTestCase.java
+++ b/opendj-server-legacy/src/test/java/org/opends/server/tools/LDIFSearchTestCase.java
@@ -12,7 +12,7 @@
* information: "Portions Copyright [year] [name of copyright owner]".
*
* Copyright 2006-2008 Sun Microsystems, Inc.
- * Portions Copyright 2015 ForgeRock AS.
+ * Portions Copyright 2015-2016 ForgeRock AS.
*/
package org.opends.server.tools;
@@ -111,7 +111,7 @@
};
assertEquals(LDIFSearch.mainSearch(args, false, System.out, System.err), 0);
Entry e = readEntry();
- assertThat(e.getAttribute("objectclass")).isNotEmpty();
+ assertThat(e.getAllAttributes("objectclass")).isNotEmpty();
}
/**
@@ -133,7 +133,7 @@
};
assertEquals(LDIFSearch.mainSearch(args, false, System.out, System.err), 0);
Entry e = readEntry();
- assertThat(e.getAttribute("objectclass")).isEmpty();
+ assertThat(e.getAllAttributes("objectclass")).isEmpty();
}
/**
@@ -156,9 +156,9 @@
};
assertEquals(LDIFSearch.mainSearch(args, false, System.out, System.err), 0);
Entry e = readEntry();
- assertThat(e.getAttribute("objectclass")).isEmpty();
- assertThat(e.getAttribute("mail")).isNotEmpty();
- assertThat(e.getAttribute("uid")).isNotEmpty();
+ assertThat(e.getAllAttributes("objectclass")).isEmpty();
+ assertThat(e.getAllAttributes("mail")).isNotEmpty();
+ assertThat(e.getAllAttributes("uid")).isNotEmpty();
}
@@ -193,8 +193,8 @@
};
assertEquals(LDIFSearch.mainSearch(args, false, System.out, System.err), 0);
Entry e = readEntry();
- assertThat(e.getAttribute("objectclass")).isEmpty();
- assertThat(e.getAttribute("mail")).isNotEmpty();
- assertThat(e.getAttribute("uid")).isNotEmpty();
+ assertThat(e.getAllAttributes("objectclass")).isEmpty();
+ assertThat(e.getAllAttributes("mail")).isNotEmpty();
+ assertThat(e.getAllAttributes("uid")).isNotEmpty();
}
}
--
Gitblit v1.10.0