commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1652690 - /commons/proper/net/trunk/src/test/java/org/apache/commons/net/ftp/parser/UnixFTPEntryParserTest.java
Date Sat, 17 Jan 2015 22:43:58 GMT
Author: sebb
Date: Sat Jan 17 22:43:58 2015
New Revision: 1652690

URL: http://svn.apache.org/r1652690
Log:
Test forced trimming

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

Modified: commons/proper/net/trunk/src/test/java/org/apache/commons/net/ftp/parser/UnixFTPEntryParserTest.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/test/java/org/apache/commons/net/ftp/parser/UnixFTPEntryParserTest.java?rev=1652690&r1=1652689&r2=1652690&view=diff
==============================================================================
--- commons/proper/net/trunk/src/test/java/org/apache/commons/net/ftp/parser/UnixFTPEntryParserTest.java
(original)
+++ commons/proper/net/trunk/src/test/java/org/apache/commons/net/ftp/parser/UnixFTPEntryParserTest.java
Sat Jan 17 22:43:58 2015
@@ -178,6 +178,12 @@ public class UnixFTPEntryParserTest exte
         assertEquals("  zxbox", f.getName() ); // leading spaces retained
     }
 
+    public void testTrimLeadingSpacesNET566() { // check new behaviour alternate setting
+        FTPFile f = new UnixFTPEntryParser(null, true).parseFTPEntry("drwxr-xr-x   2 john
smith     group         4096 Mar  2 15:13   zxbox");
+        assertNotNull(f);
+        assertEquals("zxbox", f.getName() ); // leading spaces trimmed
+    }
+
     public void testNameWIthPunctuation() {
         FTPFile f = getParser().parseFTPEntry("drwx------ 4 maxm Domain Users 512 Oct 2 10:59
abc(test)123.pdf");
         assertNotNull(f);



Mime
View raw message