commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rwins...@apache.org
Subject svn commit: r688912 - /commons/proper/net/branches/NET_2_0/src/test/java/org/apache/commons/net/ftp/parser/UnixFTPEntryParserTest.java
Date Mon, 25 Aug 2008 22:55:37 GMT
Author: rwinston
Date: Mon Aug 25 15:55:37 2008
New Revision: 688912

URL: http://svn.apache.org/viewvc?rev=688912&view=rev
Log:
Add filename metachar 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=688912&r1=688911&r2=688912&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
Mon Aug 25 15:55:37 2008
@@ -170,6 +170,13 @@
 		assertNotNull(f);
 		assertEquals(f.getName(), "zxbox     ");	
 	}
+	
+	public void testNameWIthPunctuation() {
+		FTPFile f = getParser().parseFTPEntry("drwx------ 4 maxm Domain Users 512 Oct 2 10:59 abc(test)123.pdf");
+		assertNotNull(f);
+		assertEquals(f.getName(), "abc(test)123.pdf");
+		
+	}
 
     /**
      * @see org.apache.commons.net.ftp.parser.FTPParseTestFramework#testParseFieldsOnDirectory()



Mime
View raw message