commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rwins...@apache.org
Subject svn commit: r757226 - /commons/proper/net/branches/NET_2_0/src/test/java/org/apache/commons/net/ftp/parser/UnixFTPEntryParserTest.java
Date Sun, 22 Mar 2009 18:01:22 GMT
Author: rwinston
Date: Sun Mar 22 18:01:22 2009
New Revision: 757226

URL: http://svn.apache.org/viewvc?rev=757226&view=rev
Log:
Modify test as per 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=757226&r1=757225&r2=757226&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
Sun Mar 22 18:01:22 2009
@@ -196,7 +196,6 @@
 		assertEquals(f.getSize(), 12414535);
 		assertEquals(f.getName(), "test 1999 abc.pdf");
 
-
 		Calendar cal = Calendar.getInstance();
 		cal.set(Calendar.MONTH, Calendar.MARCH);
 		cal.set(Calendar.DAY_OF_MONTH, 17);
@@ -208,8 +207,11 @@
 	}
 	
 	public void testFilenamesWithEmbeddedNumbers() {
-		FTPFile f = getParser().parseFTPEntry("-rw-r--r--   1 root     root       111325 Feb 25
12:00 123 456 abc.csv");
+		FTPFile f = getParser().parseFTPEntry("-rw-rw-rw-   1 user group 5840 Mar 19 09:34 123
456 abc.csv");
 		assertEquals(f.getName(), "123 456 abc.csv");
+		assertEquals(f.getSize(), 5840);
+		assertEquals(f.getUser(), "user");
+		assertEquals(f.getGroup(), "group");
 	}
 
     /**



Mime
View raw message