From 22094368c2865dcfb6daf8366425212b721a4657 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Thu, 05 Feb 2009 17:42:14 +0000
Subject: [PATCH] Merge ASN1 branch to trunk
---
opends/tests/unit-tests-testng/src/server/org/opends/server/schema/ApproximatematchingRule.java | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/schema/ApproximatematchingRule.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/schema/ApproximatematchingRule.java
index 5a3ac9f..ccb396f 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/schema/ApproximatematchingRule.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/schema/ApproximatematchingRule.java
@@ -29,7 +29,6 @@
import static org.testng.Assert.*;
import org.opends.server.api.ApproximateMatchingRule;
-import org.opends.server.protocols.asn1.ASN1OctetString;
import org.opends.server.types.ByteString;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
@@ -151,9 +150,9 @@
// normalize the 2 provided values
ByteString normalizedValue1 =
- ruleInstance.normalizeValue(new ASN1OctetString(value1));
+ ruleInstance.normalizeValue(ByteString.valueOf(value1));
ByteString normalizedValue2 =
- ruleInstance.normalizeValue(new ASN1OctetString(value2));
+ ruleInstance.normalizeValue(ByteString.valueOf(value2));
// check that the approximatelyMatch return the expected result.
Boolean liveResult = ruleInstance.approximatelyMatch(normalizedValue1,
--
Gitblit v1.10.0