mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Matthew Swift
13.35.2015 20e3b8dfac55899af4490c8bde52330acce9e200
OPENDJ-1689: Fix unit test regression in previous MatchingRule.comparator() commit

1 files modified
6 ■■■■ changed files
opendj-server-legacy/src/test/java/org/opends/server/schema/AttributeTypeSyntaxTest.java 6 ●●●● patch | view | raw | blame | history
opendj-server-legacy/src/test/java/org/opends/server/schema/AttributeTypeSyntaxTest.java
@@ -22,7 +22,7 @@
 *
 *
 *      Copyright 2006-2010 Sun Microsystems, Inc.
 *      Portions Copyright 2011-2014 ForgeRock AS
 *      Portions Copyright 2011-2015 ForgeRock AS
 */
package org.opends.server.schema;
@@ -148,7 +148,7 @@
  public void testXAPPROXExtension() throws Exception
  {
    MatchingRule mrule = Schema.getCoreSchema().getMatchingRule("ds-mr-double-metaphone-approx");
    // Get a reference to the attribute type syntax implementation in the
    // server.
    AttributeTypeSyntax attrTypeSyntax =
@@ -161,7 +161,7 @@
    ByteString definition = ByteString.valueOf(
      "( testxapproxtype-oid NAME 'testXApproxType' " +
           "SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 " +
           "X-APPROX 'equalLengthApproximateMatch' )");
           "X-APPROX 'ds-mr-double-metaphone-approx' )");
    LocalizableMessageBuilder invalidReason = new LocalizableMessageBuilder();
    assertTrue(attrTypeSyntax.valueIsAcceptable(definition, invalidReason),
            invalidReason.toString());