From 70e742ae6cd5e85059a1b8efec00c46d5c54a7f1 Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Thu, 28 Jan 2016 08:28:53 +0000
Subject: [PATCH] (PR-201) Do not call String.toLowerCase() or StaticUtils.toLowerCase() since Schema class now does it itself
---
opendj-server-legacy/src/test/java/org/opends/server/admin/ValidateConfigDefinitionsTest.java | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/opendj-server-legacy/src/test/java/org/opends/server/admin/ValidateConfigDefinitionsTest.java b/opendj-server-legacy/src/test/java/org/opends/server/admin/ValidateConfigDefinitionsTest.java
index e2fcfe5..d481bc2 100644
--- a/opendj-server-legacy/src/test/java/org/opends/server/admin/ValidateConfigDefinitionsTest.java
+++ b/opendj-server-legacy/src/test/java/org/opends/server/admin/ValidateConfigDefinitionsTest.java
@@ -190,12 +190,12 @@
Schema schema = DirectoryServer.getSchema();
// LDAP attribute exists
- if (!schema.hasAttributeType(ldapAttrName.toLowerCase()))
+ if (!schema.hasAttributeType(ldapAttrName))
{
errors.append(propName + " property on config object " + objName + " is declared" +
" to use ldap attribute " + ldapAttrName + ", but this attribute is not in the schema ").append(EOL + EOL);
} else {
- AttributeType attrType = schema.getAttributeType(ldapAttrName.toLowerCase());
+ AttributeType attrType = schema.getAttributeType(ldapAttrName);
// LDAP attribute is multivalued if the property is multivalued
if (propDef.hasOption(PropertyOption.MULTI_VALUED) && attrType.isSingleValue()) {
--
Gitblit v1.10.0