Author: chris.laprun(a)jboss.com
Date: 2012-03-14 20:19:43 -0400 (Wed, 14 Mar 2012)
New Revision: 8603
Modified:
epp/portal/branches/EPP_5_2_Branch/webui/core/src/test/java/org/exoplatform/webui/test/validator/TestWebuiValidator.java
Log:
- Removed NumberRangeValidator references that don't exist in EPP.
Modified:
epp/portal/branches/EPP_5_2_Branch/webui/core/src/test/java/org/exoplatform/webui/test/validator/TestWebuiValidator.java
===================================================================
---
epp/portal/branches/EPP_5_2_Branch/webui/core/src/test/java/org/exoplatform/webui/test/validator/TestWebuiValidator.java 2012-03-14
17:21:09 UTC (rev 8602)
+++
epp/portal/branches/EPP_5_2_Branch/webui/core/src/test/java/org/exoplatform/webui/test/validator/TestWebuiValidator.java 2012-03-15
00:19:43 UTC (rev 8603)
@@ -27,7 +27,6 @@
import org.exoplatform.webui.form.validator.IdentifierValidator;
import org.exoplatform.webui.form.validator.NameValidator;
import org.exoplatform.webui.form.validator.NumberFormatValidator;
-import org.exoplatform.webui.form.validator.NumberRangeValidator;
import org.exoplatform.webui.form.validator.PositiveNumberFormatValidator;
import org.exoplatform.webui.form.validator.ResourceValidator;
import org.exoplatform.webui.form.validator.SpecialCharacterValidator;
@@ -178,21 +177,6 @@
assertFalse(expected(validator, "-01"));
}
- public void testNumberRangeValidator()
- {
- Validator validator = new NumberRangeValidator(-5, 5);
- assertTrue(expected(validator, "-5"));
- assertTrue(expected(validator, "-1"));
- assertTrue(expected(validator, "0"));
- assertTrue(expected(validator, "1"));
- assertTrue(expected(validator, "5"));
-
- assertFalse(expected(validator, "-10"));
- assertFalse(expected(validator, "-6"));
- assertFalse(expected(validator, "6"));
- assertFalse(expected(validator, "10"));
- }
-
public void testSpecialCharacterValidator()
{
Validator validator = new SpecialCharacterValidator();
Show replies by date