From 4baece95779dd46a3a59d59d1b7aa5958cf6117d Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Thu, 05 Nov 2015 12:25:29 +0000
Subject: [PATCH] OPENDJ-1802 Make ByteString methods more intentional
---
opendj-server-legacy/src/test/java/org/opends/server/schema/TimeBasedMatchingRuleTest.java | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/opendj-server-legacy/src/test/java/org/opends/server/schema/TimeBasedMatchingRuleTest.java b/opendj-server-legacy/src/test/java/org/opends/server/schema/TimeBasedMatchingRuleTest.java
index fccb067..71a2830 100644
--- a/opendj-server-legacy/src/test/java/org/opends/server/schema/TimeBasedMatchingRuleTest.java
+++ b/opendj-server-legacy/src/test/java/org/opends/server/schema/TimeBasedMatchingRuleTest.java
@@ -252,8 +252,8 @@
{
MatchingRule partialTimeRule = DirectoryServer.getMatchingRule(
EXT_PARTIAL_DATE_TIME_NAME.toLowerCase());
- Assertion assertion = partialTimeRule.getAssertion(ByteString.valueOf(assertionValue));
- assertEquals(assertion.matches(ByteString.valueOf(attributeValue)), ConditionResult.TRUE);
+ Assertion assertion = partialTimeRule.getAssertion(ByteString.valueOfUtf8(assertionValue));
+ assertEquals(assertion.matches(ByteString.valueOfLong(attributeValue)), ConditionResult.TRUE);
}
@@ -268,7 +268,7 @@
DirectoryServer.getMatchingRule(EXT_OMR_RELATIVE_TIME_LT_ALT_NAME.toLowerCase());
try
{
- relativeTimeLTRule.getAssertion(ByteString.valueOf(assertion));
+ relativeTimeLTRule.getAssertion(ByteString.valueOfUtf8(assertion));
// An invalid value can't get away without throwing exception.
assertTrue(isValid);
}
@@ -291,7 +291,7 @@
DirectoryServer.getMatchingRule(EXT_PARTIAL_DATE_TIME_OID);
try
{
- partialDTRule.getAssertion(ByteString.valueOf(assertion));
+ partialDTRule.getAssertion(ByteString.valueOfUtf8(assertion));
assertTrue(isValid);
}
catch (DecodeException e)
--
Gitblit v1.10.0