From e0e6d30a905e47931a89b7e9063d752a6f28106d Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Wed, 05 Feb 2014 22:45:49 +0000
Subject: [PATCH] OPENDJ-1235: Migrate configuration framework
---
opendj-config/src/test/java/org/forgerock/opendj/config/StringPropertyDefinitionTest.java | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/opendj-config/src/test/java/org/forgerock/opendj/config/StringPropertyDefinitionTest.java b/opendj-config/src/test/java/org/forgerock/opendj/config/StringPropertyDefinitionTest.java
index 98e20af..a1dd324 100644
--- a/opendj-config/src/test/java/org/forgerock/opendj/config/StringPropertyDefinitionTest.java
+++ b/opendj-config/src/test/java/org/forgerock/opendj/config/StringPropertyDefinitionTest.java
@@ -36,33 +36,33 @@
@Test
public void testValidateValueNoPattern() {
StringPropertyDefinition d = getDefinition(true, null);
- d.validateValue("abc", PropertyDefinitionsOptions.NO_VALIDATION_OPTIONS);
+ d.validateValue("abc");
}
@Test
public void testValidateValuePatternMatches() {
StringPropertyDefinition d = getDefinition(true, "^[a-z]+$");
- d.validateValue("abc", PropertyDefinitionsOptions.NO_VALIDATION_OPTIONS);
+ d.validateValue("abc");
}
// TODO : I18N problem
@Test(enabled = false, expectedExceptions = PropertyException.class)
public void testValidateValuePatternDoesNotMatch() {
StringPropertyDefinition d = getDefinition(true, "^[a-z]+$");
- d.validateValue("abc123", PropertyDefinitionsOptions.NO_VALIDATION_OPTIONS);
+ d.validateValue("abc123");
}
@Test
public void testDecodeValuePatternMatches() {
StringPropertyDefinition d = getDefinition(true, "^[a-z]+$");
- assertEquals(d.decodeValue("abc", PropertyDefinitionsOptions.NO_VALIDATION_OPTIONS), "abc");
+ assertEquals(d.decodeValue("abc"), "abc");
}
// TODO : I18N problem
@Test(enabled = false, expectedExceptions = PropertyException.class)
public void testDecodeValuePatternDoesNotMatch() {
StringPropertyDefinition d = getDefinition(true, "^[a-z]+$");
- d.decodeValue("abc123", PropertyDefinitionsOptions.NO_VALIDATION_OPTIONS);
+ d.decodeValue("abc123");
}
// Create a string property definition.
--
Gitblit v1.10.0