commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rwins...@apache.org
Subject svn commit: r756235 - /commons/proper/net/branches/NET_2_0/src/test/java/org/apache/commons/net/ftp/parser/UnixFTPEntryParserTest.java
Date Thu, 19 Mar 2009 22:10:38 GMT
Author: rwinston
Date: Thu Mar 19 22:10:38 2009
New Revision: 756235

URL: http://svn.apache.org/viewvc?rev=756235&view=rev
Log:
Add sample test for NET-266

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=756235&r1=756234&r2=756235&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
Thu Mar 19 22:10:38 2009
@@ -206,6 +206,11 @@
 		cal.set(Calendar.MILLISECOND, 0);
 		assertEquals(cal.getTime(), f.getTimestamp().getTime());
 	}
+	
+	public void testFilenamesWithEmbeddedNumbers() {
+		FTPFile f = getParser().parseFTPEntry("-rw-r--r--   1 root     root       111325 Feb 25
12:00 123 456 abc.csv");
+		assertEquals(f.getName(), "123 456 abc.csv");
+	}
 
     /**
      * @see org.apache.commons.net.ftp.parser.FTPParseTestFramework#testParseFieldsOnDirectory()



Mime
View raw message