@@ -63,7 +63,7 @@ public static Argument buildPathArgument() {
6363
6464 public static Argument buildDateLimitArgument () {
6565 return new ArgumentImpl ("limit" , "the last acceptable date" , 0 , 1 , '=' , '\0' ,
66- new DateValidator (DateValidatorTest .YYYY_MM_YY ), null , null , 0 );
66+ new DateValidator (DateValidatorTest .YYYY_MM_DD ), null , null , 0 );
6767 }
6868
6969 public static Argument buildTargetsArgument () {
@@ -91,15 +91,15 @@ public static Argument buildBoundsArgument() {
9191 public void testNew () {
9292 try {
9393 new ArgumentImpl ("limit" , "the last acceptable date" , 10 , 5 , '=' , '\0' ,
94- new DateValidator (DateValidatorTest .YYYY_MM_YY ), null , null , 0 );
94+ new DateValidator (DateValidatorTest .YYYY_MM_DD ), null , null , 0 );
9595 } catch (IllegalArgumentException e ) {
9696 assertEquals (resources .getMessage ("Argument.minimum.exceeds.maximum" ), e .getMessage ());
9797 }
9898
9999 {
100100 ArgumentImpl arg =
101101 new ArgumentImpl (null , "the last acceptable date" , 5 , 5 , '=' , '\0' ,
102- new DateValidator (DateValidatorTest .YYYY_MM_YY ), null , null , 0 );
102+ new DateValidator (DateValidatorTest .YYYY_MM_DD ), null , null , 0 );
103103 assertEquals ("wrong arg name" , "arg" , arg .getPreferredName ());
104104 }
105105
@@ -108,7 +108,7 @@ public void testNew() {
108108
109109 try {
110110 new ArgumentImpl (null , "the last acceptable date" , 1 , 1 , '=' , '\0' ,
111- new DateValidator (DateValidatorTest .YYYY_MM_YY ), null , defaults , 0 );
111+ new DateValidator (DateValidatorTest .YYYY_MM_DD ), null , defaults , 0 );
112112 } catch (IllegalArgumentException exp ) {
113113 assertEquals (resources .getMessage ("Argument.too.few.defaults" ), exp .getMessage ());
114114 }
@@ -120,7 +120,7 @@ public void testNew() {
120120 defaults .add ("2" );
121121
122122 new ArgumentImpl (null , "the last acceptable date" , 1 , 1 , '=' , '\0' ,
123- new DateValidator (DateValidatorTest .YYYY_MM_YY ), null , defaults , 0 );
123+ new DateValidator (DateValidatorTest .YYYY_MM_DD ), null , defaults , 0 );
124124 } catch (IllegalArgumentException exp ) {
125125 assertEquals (resources .getMessage ("Argument.too.many.defaults" ), exp .getMessage ());
126126 }
@@ -367,7 +367,7 @@ public void testValidate_Validator()
367367
368368 option .validate (commandLine , option );
369369 assertContentsEqual (Arrays .asList (new Object [] {
370- DateValidatorTest .YYYY_MM_YY .parse ("2004-01-01" )
370+ DateValidatorTest .YYYY_MM_DD .parse ("2004-01-01" )
371371 }), commandLine .getValues (option ));
372372 }
373373
0 commit comments