commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rwins...@apache.org
Subject svn commit: r678941 - /commons/proper/net/branches/NET_2_0/src/test/java/org/apache/commons/net/ftp/parser/UnixFTPEntryParserTest.java
Date Tue, 22 Jul 2008 23:13:44 GMT
Author: rwinston
Date: Tue Jul 22 16:13:44 2008
New Revision: 678941

URL: http://svn.apache.org/viewvc?rev=678941&view=rev
Log:
Add new test

Modified:
    commons/proper/net/branches/NET_2_0/src/test/java/org/apache/commons/net/ftp/parser/UnixFTPEntryParserTest.java

Modified: commons/proper/net/branches/NET_2_0/src/test/java/org/apache/commons/net/ftp/parser/UnixFTPEntryParserTest.java
URL: http://svn.apache.org/viewvc/commons/proper/net/branches/NET_2_0/src/test/java/org/apache/commons/net/ftp/parser/UnixFTPEntryParserTest.java?rev=678941&r1=678940&r2=678941&view=diff
==============================================================================
--- commons/proper/net/branches/NET_2_0/src/test/java/org/apache/commons/net/ftp/parser/UnixFTPEntryParserTest.java
(original)
+++ commons/proper/net/branches/NET_2_0/src/test/java/org/apache/commons/net/ftp/parser/UnixFTPEntryParserTest.java
Tue Jul 22 16:13:44 2008
@@ -164,6 +164,12 @@
         assertEquals("maxm", f.getUser());
         assertEquals("Domain Users", f.getGroup());
     }
+	
+	public void testTrailingSpaces() {
+		FTPFile f = getParser().parseFTPEntry("drwxr-xr-x   2 john smith     group         4096
Mar  2 15:13 zxbox     ");
+		assertNotNull(f);
+		assertEquals(f.getName(), "zxbox     ");	
+	}
 
     /**
      * @see org.apache.commons.net.ftp.parser.FTPParseTestFramework#testParseFieldsOnDirectory()



Mime
View raw message