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 2014/12/10 16:16:04 UTC

svn commit: r1644451 - /commons/proper/net/trunk/src/test/java/org/apache/commons/net/ftp/parser/EnterpriseUnixFTPEntryParserTest.java

Author: sebb
Date: Wed Dec 10 15:16:04 2014
New Revision: 1644451

URL: http://svn.apache.org/r1644451
Log:
Check for parse error

Modified:
    commons/proper/net/trunk/src/test/java/org/apache/commons/net/ftp/parser/EnterpriseUnixFTPEntryParserTest.java

Modified: commons/proper/net/trunk/src/test/java/org/apache/commons/net/ftp/parser/EnterpriseUnixFTPEntryParserTest.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/test/java/org/apache/commons/net/ftp/parser/EnterpriseUnixFTPEntryParserTest.java?rev=1644451&r1=1644450&r2=1644451&view=diff
==============================================================================
--- commons/proper/net/trunk/src/test/java/org/apache/commons/net/ftp/parser/EnterpriseUnixFTPEntryParserTest.java (original)
+++ commons/proper/net/trunk/src/test/java/org/apache/commons/net/ftp/parser/EnterpriseUnixFTPEntryParserTest.java Wed Dec 10 15:16:04 2014
@@ -124,6 +124,7 @@ public class EnterpriseUnixFTPEntryParse
         FTPFile file = getParser().parseFTPEntry("-C--E-----FTP B QUA1I1      18128       5000000000 Aug 12 13:56 QUADTEST");
         assertNotNull(file);
         Calendar stamp = file.getTimestamp();
+        assertNotNull(stamp);
         assertTrue("Expected minute to be set", stamp.isSet(Calendar.MINUTE));
         assertFalse("Expected second to be unset", stamp.isSet(Calendar.SECOND));
     }
@@ -132,6 +133,7 @@ public class EnterpriseUnixFTPEntryParse
         FTPFile file = getParser().parseFTPEntry("-C--E-----FTP B QUA1I1      18128       5000000000 Aug 12 2014 QUADTEST");
         assertNotNull(file);
         Calendar stamp = file.getTimestamp();
+        assertNotNull(stamp);
         assertTrue("Expected day to be set", stamp.isSet(Calendar.DAY_OF_MONTH));
         assertFalse("Expected hour to be unset", stamp.isSet(Calendar.HOUR_OF_DAY));
     }