From 2194ab43eb82407b0d95b33fe0c7accee2e976a1 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Thu, 09 Nov 2006 20:35:37 +0000
Subject: [PATCH] Add new unit tests that perform validation for message IDs.  One test verifies that there are no duplicate message ID assignments, and the other makes sure that all message IDs defined are registered with the server and have a valid default message.  This testing is conducted using reflection to examine all declared fields in the message classes.

---
 opendj-sdk/opends/src/server/org/opends/server/messages/ToolMessages.java |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/messages/ToolMessages.java b/opendj-sdk/opends/src/server/org/opends/server/messages/ToolMessages.java
index 70eb891..50d7990 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/messages/ToolMessages.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/messages/ToolMessages.java
@@ -7093,7 +7093,7 @@
     registerMessage(MSGID_LDIFIMPORT_CANNOT_INITIALIZE_PWPOLICY,
                     "An error occurred while attempting to initialize the " +
                     "password policy components:  %s.");
-    registerMessage(MSGID_LDIFEXPORT_CANNOT_INITIALIZE_PLUGINS,
+    registerMessage(MSGID_LDIFIMPORT_CANNOT_INITIALIZE_PLUGINS,
                     "An error occurred while attempting to initialize the " +
                     "LDIF import plugins:  %s.");
     registerMessage(MSGID_LDIFIMPORT_CANNOT_PARSE_EXCLUDE_FILTER,
@@ -7213,6 +7213,8 @@
                     "# Your password has expired.");
     registerMessage(MSGID_BIND_PASSWORD_EXPIRING,
                     "# Your password will expire in %s.");
+    registerMessage(MSGID_BIND_ACCOUNT_LOCKED,
+                    "# Your account has been locked.");
     registerMessage(MSGID_BIND_MUST_CHANGE_PASSWORD,
                     "# You must change your password before any other " +
                     "operations will be allowed.");
@@ -8585,7 +8587,7 @@
                     "Line %d of the template file contains an incomplete " +
                     "tag that starts with either '<' or '{' but does get " +
                     "closed.");
-    registerMessage(MSGID_MAKELDIF_NO_COLON_IN_BRANCH_EXTRA_LINE,
+    registerMessage(MSGID_MAKELDIF_NO_COLON_IN_TEMPLATE_LINE,
                     "There is no colon to separate the attribute name from " +
                     "the value pattern on line %s of the template file in " +
                     "the definition for template %s.");

--
Gitblit v1.10.0