From 80c58327faaa4873369f6bb949e62792c2f708e0 Mon Sep 17 00:00:00 2001
From: kenneth_suter <kenneth_suter@localhost>
Date: Wed, 15 Aug 2007 21:34:53 +0000
Subject: [PATCH] This commit is a step toward getting OpenDS internationalized. There are still issues to be resolved before we can declare that we are internationalized but this commit covers the bulk of changes needed at this time.

---
 opends/tests/unit-tests-testng/src/server/org/opends/server/extensions/TestPasswordValidator.java |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/extensions/TestPasswordValidator.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/extensions/TestPasswordValidator.java
index f7e5d05..67fef94 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/extensions/TestPasswordValidator.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/extensions/TestPasswordValidator.java
@@ -37,7 +37,8 @@
 import org.opends.server.types.Entry;
 import org.opends.server.types.InitializationException;
 import org.opends.server.types.Operation;
-
+import org.opends.messages.MessageBuilder;
+import org.opends.messages.Message;
 
 
 /**
@@ -102,8 +103,8 @@
     }
     else
     {
-      throw new InitializationException(1,
-           "Cannot configure more than one TestPasswordValidator instance");
+      throw new InitializationException(Message.raw(
+           "Cannot configure more than one TestPasswordValidator instance"));
     }
 
     lastNewPassword      = null;
@@ -123,7 +124,7 @@
   public boolean passwordIsAcceptable(ByteString newPassword,
                                       Set<ByteString> currentPasswords,
                                       Operation operation, Entry userEntry,
-                                      StringBuilder invalidReason)
+                                      MessageBuilder invalidReason)
   {
     lastNewPassword      = newPassword;
     lastCurrentPasswords = currentPasswords;

--
Gitblit v1.10.0