Skip to content

Commit 04e55f0

Browse files
author
Rory Winston
committed
Modify test as per NET-266
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/net/branches/NET_2_0@757226 13f79535-47bb-0310-9956-ffa450edef68
1 parent b59310e commit 04e55f0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/test/java/org/apache/commons/net/ftp/parser/UnixFTPEntryParserTest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ public void testCorrectGroupNameParsing() {
196196
assertEquals(f.getSize(), 12414535);
197197
assertEquals(f.getName(), "test 1999 abc.pdf");
198198

199-
200199
Calendar cal = Calendar.getInstance();
201200
cal.set(Calendar.MONTH, Calendar.MARCH);
202201
cal.set(Calendar.DAY_OF_MONTH, 17);
@@ -208,8 +207,11 @@ public void testCorrectGroupNameParsing() {
208207
}
209208

210209
public void testFilenamesWithEmbeddedNumbers() {
211-
FTPFile f = getParser().parseFTPEntry("-rw-r--r-- 1 root root 111325 Feb 25 12:00 123 456 abc.csv");
210+
FTPFile f = getParser().parseFTPEntry("-rw-rw-rw- 1 user group 5840 Mar 19 09:34 123 456 abc.csv");
212211
assertEquals(f.getName(), "123 456 abc.csv");
212+
assertEquals(f.getSize(), 5840);
213+
assertEquals(f.getUser(), "user");
214+
assertEquals(f.getGroup(), "group");
213215
}
214216

215217
/**

0 commit comments

Comments
 (0)