From 61be60eef8694b2c28386faf6dd2d7c4e842addd Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Thu, 16 Jun 2011 18:00:52 +0000
Subject: [PATCH] Fix OPENDJ-198: RFC 4512 compliance for ldap-toolkit

---
 opendj3/opendj-ldap-sdk/src/test/java/org/forgerock/opendj/ldap/schema/SchemaUtilsTest.java |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/opendj3/opendj-ldap-sdk/src/test/java/org/forgerock/opendj/ldap/schema/SchemaUtilsTest.java b/opendj3/opendj-ldap-sdk/src/test/java/org/forgerock/opendj/ldap/schema/SchemaUtilsTest.java
index b78c258..2131dad 100644
--- a/opendj3/opendj-ldap-sdk/src/test/java/org/forgerock/opendj/ldap/schema/SchemaUtilsTest.java
+++ b/opendj3/opendj-ldap-sdk/src/test/java/org/forgerock/opendj/ldap/schema/SchemaUtilsTest.java
@@ -23,6 +23,7 @@
  *
  *
  *      Copyright 2009 Sun Microsystems, Inc.
+ *      Portions copyright 2011 ForgeRock AS
  */
 package org.forgerock.opendj.ldap.schema;
 
@@ -49,6 +50,7 @@
   {
     return new Object[][] { { "" }, { ".0" }, { "0." }, { "100." }, { ".999" },
         { "1one" }, { "one+two+three" },
+        { "one.two.three" },
         // AD puts quotes around OIDs - test mismatched quotes.
         { "'0" }, { "'10" }, { "999'" }, { "0.0'" }, };
   }
@@ -86,7 +88,7 @@
         // Not strictly legal, but we'll be lenient with what we accept.
         { "0" }, { "1" }, { "2" }, { "3" }, { "4" }, { "5" }, { "6" }, { "7" },
         { "8" }, { "9" }, { "00" }, { "01" }, { "01.0" }, { "0.01" },
-        { "one.two.three" }, };
+      };
   }
 
 
@@ -95,7 +97,7 @@
   public void testReadOIDInvalid(final String oid) throws DecodeException
   {
     final SubstringReader reader = new SubstringReader(oid);
-    SchemaUtils.readOID(reader);
+    SchemaUtils.readOID(reader, false);
   }
 
 
@@ -110,6 +112,6 @@
     }
 
     final SubstringReader reader = new SubstringReader(oid);
-    Assert.assertEquals(SchemaUtils.readOID(reader), expected);
+    Assert.assertEquals(SchemaUtils.readOID(reader, false), expected);
   }
 }

--
Gitblit v1.10.0