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/ConfigMessages.java | 63 ++++++++++++++++---------------
1 files changed, 33 insertions(+), 30 deletions(-)
diff --git a/opendj-sdk/opends/src/server/org/opends/server/messages/ConfigMessages.java b/opendj-sdk/opends/src/server/org/opends/server/messages/ConfigMessages.java
index 615f2a8..237e237 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/messages/ConfigMessages.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/messages/ConfigMessages.java
@@ -4889,26 +4889,6 @@
/**
- * The message ID for the description of the server time limit configuration
- * attribute. This does not take any arguments.
- */
- public static final int MSGID_CONFIG_CORE_DESCRIPTION_TIME_LIMIT =
- CATEGORY_MASK_CONFIG | SEVERITY_MASK_INFORMATIONAL | 450;
-
-
-
- /**
- * The message ID for the message that will be used if an error occurs while
- * trying to process the server time limit. This takes two arguments, which
- * are the DN of the configuration entry and a string representation of the
- * exception that was caught.
- */
- public static final int MSGID_CONFIG_CORE_INVALID_TIME_LIMIT =
- CATEGORY_MASK_CONFIG | SEVERITY_MASK_SEVERE_ERROR | 451;
-
-
-
- /**
* The message ID for the message that will be used if an error occurs while
* attempting to retrieve the configuration base entry for the Directory
* Server synchronization providers. This takes a single argument, which is
@@ -5575,15 +5555,6 @@
/**
- * The message ID for the message that will be used if no default password
- * policy has been defined. This does not take any arguments.
- */
- public static final int MSGID_CONFIG_PWPOLICY_NO_DEFAULT_POLICY =
- CATEGORY_MASK_CONFIG | SEVERITY_MASK_SEVERE_ERROR | 514;
-
-
-
- /**
* The message ID for the message that will be used if a password policy
* configuration entry is invalid. This takes two arguments, which are the DN
* of the invalid password policy configuration entry and a message that
@@ -6153,6 +6124,35 @@
/**
+ * The message ID for the description of the server time limit configuration
+ * attribute. This does not take any arguments.
+ */
+ public static final int MSGID_CONFIG_CORE_DESCRIPTION_TIME_LIMIT =
+ CATEGORY_MASK_CONFIG | SEVERITY_MASK_INFORMATIONAL | 569;
+
+
+
+ /**
+ * The message ID for the message that will be used if an error occurs while
+ * trying to process the server time limit. This takes two arguments, which
+ * are the DN of the configuration entry and a string representation of the
+ * exception that was caught.
+ */
+ public static final int MSGID_CONFIG_CORE_INVALID_TIME_LIMIT =
+ CATEGORY_MASK_CONFIG | SEVERITY_MASK_SEVERE_ERROR | 570;
+
+
+
+ /**
+ * The message ID for the message that will be used if no default password
+ * policy has been defined. This does not take any arguments.
+ */
+ public static final int MSGID_CONFIG_PWPOLICY_NO_DEFAULT_POLICY =
+ CATEGORY_MASK_CONFIG | SEVERITY_MASK_SEVERE_ERROR | 571;
+
+
+
+ /**
* Associates a set of generic messages with the message IDs defined in this
* class.
*/
@@ -7607,7 +7607,7 @@
"determine whether the plugin associated with " +
"configuration entry %s should be enabled or disabled: " +
"%s. It will be disabled.");
- registerMessage(MSGID_CONFIG_PLUGIN_ATTR_DESCRIPTION_CLASS,
+ registerMessage(MSGID_CONFIG_PLUGIN_ATTR_DESCRIPTION_PLUGIN_TYPE,
"Specifies the plugin type(s) for this plugin, which "+
"control the times when this plugin will be invoked " +
"during processing. This value is only read when " +
@@ -7814,6 +7814,9 @@
registerMessage(MSGID_CONFIG_LOGGER_INVALID_SUPPRESS_INT_OPERATION_VALUE,
"Invalid value specified for attribute %s. " +
"Allowed values are true or false.");
+ registerMessage(MSGID_CONFIG_LOGGER_SUPPRESS_INTERNAL_OPERATIONS,
+ "Indicates whether messages for internal operations " +
+ "should be excluded from the access log file.");
registerMessage(MSGID_CONFIG_KEYMANAGER_CANNOT_INSTALL_NULL_PROVIDER,
--
Gitblit v1.10.0