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

matthew_swift
08.13.2010 34ac48d938d5f3411505f7d0f883a585148ec716
sdk/tests/unit-tests-testng/src/org/opends/sdk/schema/ApproximateMatchingRuleTest.java
@@ -28,7 +28,7 @@
import static org.opends.server.schema.SchemaConstants.AMR_DOUBLE_METAPHONE_NAME;
import static org.opends.sdk.schema.SchemaConstants.AMR_DOUBLE_METAPHONE_NAME;
import static org.testng.Assert.assertEquals;
import org.opends.sdk.ConditionResult;
@@ -44,8 +44,8 @@
 */
public class ApproximateMatchingRuleTest extends SchemaTestCase
{
  MatchingRule metaphone =
      Schema.getCoreSchema().getMatchingRule(AMR_DOUBLE_METAPHONE_NAME);
  MatchingRule metaphone = Schema.getCoreSchema().getMatchingRule(
      AMR_DOUBLE_METAPHONE_NAME);
@@ -154,13 +154,12 @@
      throws Exception
  {
    // normalize the 2 provided values
    ByteString normalizedValue1 =
        rule.normalizeAttributeValue(ByteString.valueOf(value1));
    ByteString normalizedValue1 = rule
        .normalizeAttributeValue(ByteString.valueOf(value1));
    // check that the approximatelyMatch return the expected result.
    ConditionResult liveResult =
        rule.getAssertion(ByteString.valueOf(value2)).matches(
            normalizedValue1);
    ConditionResult liveResult = rule.getAssertion(
        ByteString.valueOf(value2)).matches(normalizedValue1);
    assertEquals(result, liveResult);
  }
}