From 4f6891a8bd4d017a41b5f75748398ff59787501c Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Thu, 15 Oct 2015 19:38:35 +0000
Subject: [PATCH] Renamed DirectoryServer.getAttributeType() to DirectoryServer.getAttributeTypeOrNull().

---
 opendj-server-legacy/src/test/java/org/opends/server/util/TestLDIFReader.java |   17 +++++++----------
 1 files changed, 7 insertions(+), 10 deletions(-)

diff --git a/opendj-server-legacy/src/test/java/org/opends/server/util/TestLDIFReader.java b/opendj-server-legacy/src/test/java/org/opends/server/util/TestLDIFReader.java
index db63972..fd05551 100644
--- a/opendj-server-legacy/src/test/java/org/opends/server/util/TestLDIFReader.java
+++ b/opendj-server-legacy/src/test/java/org/opends/server/util/TestLDIFReader.java
@@ -176,10 +176,10 @@
     OC_PERSON = DirectoryServer.getObjectClass("person");
 
     AT_OC = DirectoryServer.getObjectClassAttributeType();
-    AT_CN = DirectoryServer.getAttributeType("cn");
-    AT_SN = DirectoryServer.getAttributeType("sn");
-    AT_DESCR = DirectoryServer.getAttributeType("description");
-    AT_TELN = DirectoryServer.getAttributeType("telephonenumber");
+    AT_CN = DirectoryServer.getAttributeTypeOrNull("cn");
+    AT_SN = DirectoryServer.getAttributeTypeOrNull("sn");
+    AT_DESCR = DirectoryServer.getAttributeTypeOrNull("description");
+    AT_TELN = DirectoryServer.getAttributeTypeOrNull("telephonenumber");
 
     // Create a temporary file containing an attribute value.
     TEMP_FILE = File.createTempFile("tmp", "txt");
@@ -551,18 +551,15 @@
       Assert.assertTrue(change instanceof ModifyChangeRecordEntry);
       modify = (ModifyChangeRecordEntry) change;
 
-      dn = DN
-          .valueOf("cn=Ingrid Jensen, ou=Product Support, dc=airius, dc=com");
+      dn = DN.valueOf("cn=Ingrid Jensen, ou=Product Support, dc=airius, dc=com");
       Assert.assertEquals(modify.getDN(), dn);
 
       i = modify.getModifications().iterator();
 
       Assert.assertTrue(i.hasNext());
       mod = i.next().toModification();
-      Assert.assertEquals(mod.getModificationType(),
-          ModificationType.REPLACE);
-      attr = Attributes.empty(DirectoryServer
-          .getAttributeType("postaladdress"));
+      Assert.assertEquals(mod.getModificationType(), ModificationType.REPLACE);
+      attr = Attributes.empty(DirectoryServer.getAttributeTypeOrNull("postaladdress"));
       Assert.assertEquals(mod.getAttribute(), attr);
 
       // Change record #7.

--
Gitblit v1.10.0