You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2012/02/29 20:45:14 UTC
svn commit: r1295237 -
/commons/proper/net/trunk/src/test/java/org/apache/commons/net/ftp/parser/FTPTimestampParserImplTest.java
Author: sebb
Date: Wed Feb 29 19:45:13 2012
New Revision: 1295237
URL: http://svn.apache.org/viewvc?rev=1295237&view=rev
Log:
Ensure both lenient and strict are tested
Modified:
commons/proper/net/trunk/src/test/java/org/apache/commons/net/ftp/parser/FTPTimestampParserImplTest.java
Modified: commons/proper/net/trunk/src/test/java/org/apache/commons/net/ftp/parser/FTPTimestampParserImplTest.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/test/java/org/apache/commons/net/ftp/parser/FTPTimestampParserImplTest.java?rev=1295237&r1=1295236&r2=1295237&view=diff
==============================================================================
--- commons/proper/net/trunk/src/test/java/org/apache/commons/net/ftp/parser/FTPTimestampParserImplTest.java (original)
+++ commons/proper/net/trunk/src/test/java/org/apache/commons/net/ftp/parser/FTPTimestampParserImplTest.java Wed Feb 29 19:45:13 2012
@@ -409,7 +409,12 @@ public class FTPTimestampParserImplTest
GregorianCalendar input = new GregorianCalendar(2000, Calendar.FEBRUARY,29);
GregorianCalendar expected = new GregorianCalendar(1999, Calendar.FEBRUARY,29);
try {
- checkShortParse("Feb 29th 1999", server, input, expected);
+ checkShortParse("Feb 29th 1999", server, input, expected, true);
+ fail("Should have failed to parse Feb 29th 1999");
+ } catch (ParseException pe) {
+ }
+ try {
+ checkShortParse("Feb 29th 1999", server, input, expected, false);
fail("Should have failed to parse Feb 29th 1999");
} catch (ParseException pe) {
}