From 4baece95779dd46a3a59d59d1b7aa5958cf6117d Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Thu, 05 Nov 2015 12:25:29 +0000
Subject: [PATCH] OPENDJ-1802 Make ByteString methods more intentional

---
 opendj-server-legacy/src/test/java/org/opends/server/plugins/AttributeCleanupPluginTestCase.java |   26 +++++++++++++-------------
 1 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/opendj-server-legacy/src/test/java/org/opends/server/plugins/AttributeCleanupPluginTestCase.java b/opendj-server-legacy/src/test/java/org/opends/server/plugins/AttributeCleanupPluginTestCase.java
index 38cd115..a28e6b9 100644
--- a/opendj-server-legacy/src/test/java/org/opends/server/plugins/AttributeCleanupPluginTestCase.java
+++ b/opendj-server-legacy/src/test/java/org/opends/server/plugins/AttributeCleanupPluginTestCase.java
@@ -253,10 +253,10 @@
      * sn: Surname
      */
     ArrayList<ByteString> values = new ArrayList<>();
-    values.add(ByteString.valueOf("top"));
-    values.add(ByteString.valueOf("person"));
-    values.add(ByteString.valueOf("organizationalperson"));
-    values.add(ByteString.valueOf("inetorgperson"));
+    values.add(ByteString.valueOfUtf8("top"));
+    values.add(ByteString.valueOfUtf8("person"));
+    values.add(ByteString.valueOfUtf8("organizationalperson"));
+    values.add(ByteString.valueOfUtf8("inetorgperson"));
 
     List<RawAttribute> rawAttributes = new ArrayList<>();
     rawAttributes.add(RawAttribute.create("objectClass", values));
@@ -269,7 +269,7 @@
                             1,
                             1,
                             null,
-                            ByteString.valueOf("dn: uid=test,dc=example,dc=com"),
+                            ByteString.valueOfUtf8("dn: uid=test,dc=example,dc=com"),
                             rawAttributes);
 
     /* Process the operation. The processing should continue. */
@@ -351,10 +351,10 @@
      */
 
     ArrayList<ByteString> values = new ArrayList<>();
-    values.add(ByteString.valueOf("top"));
-    values.add(ByteString.valueOf("person"));
-    values.add(ByteString.valueOf("organizationalperson"));
-    values.add(ByteString.valueOf("inetorgperson"));
+    values.add(ByteString.valueOfUtf8("top"));
+    values.add(ByteString.valueOfUtf8("person"));
+    values.add(ByteString.valueOfUtf8("organizationalperson"));
+    values.add(ByteString.valueOfUtf8("inetorgperson"));
 
     List<RawAttribute> rawAttributes = new ArrayList<>();
 
@@ -370,7 +370,7 @@
                             1,
                             1,
                             null,
-                            ByteString.valueOf("dn: uid=test,dc=example,dc=com"),
+                            ByteString.valueOfUtf8("dn: uid=test,dc=example,dc=com"),
                             rawAttributes);
 
     /* Process the operation and expect the server to continue
@@ -461,7 +461,7 @@
                                1,
                                1,
                                null,
-                               ByteString.valueOf("dn: uid=test,dc=example,dc=com"),
+                               ByteString.valueOfUtf8("dn: uid=test,dc=example,dc=com"),
                                rawMods);
 
     /* Process the request. The result should be SUCCESS and the server
@@ -547,7 +547,7 @@
                                1,
                                1,
                                null,
-                               ByteString.valueOf("dn: uid=test,dc=example,dc=com"),
+                               ByteString.valueOfUtf8("dn: uid=test,dc=example,dc=com"),
                                rawMods);
 
     /* Process the MODIFY operation making sure the remaining number of
@@ -638,7 +638,7 @@
                                1,
                                1,
                                null,
-                               ByteString.valueOf("dn: uid=test,dc=example,dc=com"),
+                               ByteString.valueOfUtf8("dn: uid=test,dc=example,dc=com"),
                                rawMods);
 
     /* Process the MODIFY operation. */

--
Gitblit v1.10.0