[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jakarta-commons-dev
Subject:    svn commit: r1295237 - /commons/proper/net/trunk/src/test/java/org/apache/commons/net/ftp/parser/FTP
From:       sebb () apache ! org
Date:       2012-02-29 19:45:14
Message-ID: 20120229194514.61E34238890D () eris ! apache ! org
[Download RAW message or body]

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/co \
mmons/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) {
         }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic