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:15:27 UTC

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

Author: sebb
Date: Wed Dec 10 15:15:26 2014
New Revision: 1644450

URL: http://svn.apache.org/r1644450
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=1644450&r1=1644449&r2=1644450&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:15:26 2014
@@ -122,6 +122,7 @@ public class EnterpriseUnixFTPEntryParse
 
     public void testPrecisionMinutes() {
         FTPFile file = getParser().parseFTPEntry("-C--E-----FTP B QUA1I1      18128       5000000000 Aug 12 13:56 QUADTEST");
+        assertNotNull(file);
         Calendar stamp = file.getTimestamp();
         assertTrue("Expected minute to be set", stamp.isSet(Calendar.MINUTE));
         assertFalse("Expected second to be unset", stamp.isSet(Calendar.SECOND));
@@ -129,6 +130,7 @@ public class EnterpriseUnixFTPEntryParse
 
     public void testPrecisionDays() {
         FTPFile file = getParser().parseFTPEntry("-C--E-----FTP B QUA1I1      18128       5000000000 Aug 12 2014 QUADTEST");
+        assertNotNull(file);
         Calendar stamp = file.getTimestamp();
         assertTrue("Expected day to be set", stamp.isSet(Calendar.DAY_OF_MONTH));
         assertFalse("Expected hour to be unset", stamp.isSet(Calendar.HOUR_OF_DAY));