commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject svn commit: r376883 - /jakarta/commons/proper/cli/trunk/src/test/org/apache/commons/cli2/validation/DateValidatorTest.java
Date Fri, 10 Feb 2006 22:53:01 GMT
Author: mvdb
Date: Fri Feb 10 14:52:59 2006
New Revision: 376883

URL: http://svn.apache.org/viewcvs?rev=376883&view=rev
Log:
Make tests run again.

Modified:
    jakarta/commons/proper/cli/trunk/src/test/org/apache/commons/cli2/validation/DateValidatorTest.java

Modified: jakarta/commons/proper/cli/trunk/src/test/org/apache/commons/cli2/validation/DateValidatorTest.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/cli/trunk/src/test/org/apache/commons/cli2/validation/DateValidatorTest.java?rev=376883&r1=376882&r2=376883&view=diff
==============================================================================
--- jakarta/commons/proper/cli/trunk/src/test/org/apache/commons/cli2/validation/DateValidatorTest.java
(original)
+++ jakarta/commons/proper/cli/trunk/src/test/org/apache/commons/cli2/validation/DateValidatorTest.java
Fri Feb 10 14:52:59 2006
@@ -17,7 +17,6 @@
 
 import java.text.DateFormat;
 import java.text.SimpleDateFormat;
-
 import java.util.Arrays;
 import java.util.Calendar;
 import java.util.Date;
@@ -102,7 +101,7 @@
         throws InvalidArgumentException {
         final Object[] array = new Object[] { "23/01/03 18:00" };
         final List list = Arrays.asList(array);
-        final Validator validator = new DateValidator();
+        final Validator validator = new DateValidator(new SimpleDateFormat("dd/MM/yy HH:mm"));
 
         validator.validate(list);
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message