From 96496d387a8987e0669ac8e1d71f80be0f03f3f1 Mon Sep 17 00:00:00 2001
From: Ludovic Poitou <ludovic.poitou@forgerock.com>
Date: Thu, 10 May 2012 22:05:16 +0000
Subject: [PATCH] Fix OPENDJ-493: Error message when parsing Integer attribute with invalid value is incorrect. Fixed error message, added unit tests for IntegerSyntax, fixed typo in comment.
---
opends/tests/unit-tests-testng/src/server/org/opends/server/schema/AttributeSyntaxTest.java | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/opends/tests/unit-tests-testng/src/server/org/opends/server/schema/AttributeSyntaxTest.java b/opends/tests/unit-tests-testng/src/server/org/opends/server/schema/AttributeSyntaxTest.java
index 0a190ab..6f50bc0 100644
--- a/opends/tests/unit-tests-testng/src/server/org/opends/server/schema/AttributeSyntaxTest.java
+++ b/opends/tests/unit-tests-testng/src/server/org/opends/server/schema/AttributeSyntaxTest.java
@@ -23,6 +23,7 @@
*
*
* Copyright 2006-2008 Sun Microsystems, Inc.
+ * Portions Copyright 2012 ForgeRock AS
*/
package org.opends.server.schema;
@@ -40,17 +41,17 @@
* Create data for the testAcceptableValues test.
* This should be a table of tables with 2 elements.
* The first one should be the value to test, the second the expected
- * result of the test.
- *
+ * result of the test.
+ *
* @return a table containing data for the testAcceptableValues Test.
*/
@DataProvider(name="acceptableValues")
public abstract Object[][] createAcceptableValues();
/**
- * Get an instance of the attribute syntax that muste be tested.
- *
- * @return An instance of the attribute syntax that muste be tested.
+ * Get an instance of the attribute syntax that must be tested.
+ *
+ * @return An instance of the attribute syntax that must be tested.
*/
protected abstract AttributeSyntax getRule();
@@ -68,9 +69,9 @@
// test the valueIsAcceptable method
Boolean liveResult =
syntax.valueIsAcceptable(ByteString.valueOf(value), reason);
-
+
if (liveResult != result)
- fail(syntax + ".valueIsAcceptable gave bad result for " + value +
+ fail(syntax + ".valueIsAcceptable gave bad result for " + value +
"reason : " + reason);
// call the getters
--
Gitblit v1.10.0