You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2011/02/25 21:02:17 UTC

svn commit: r1074681 - /commons/proper/net/trunk/src/test/java/org/apache/commons/net/ftp/parser/DefaultFTPFileEntryParserFactoryTest.java

Author: sebb
Date: Fri Feb 25 20:02:17 2011
New Revision: 1074681

URL: http://svn.apache.org/viewvc?rev=1074681&view=rev
Log:
More tests for status quo

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

Modified: commons/proper/net/trunk/src/test/java/org/apache/commons/net/ftp/parser/DefaultFTPFileEntryParserFactoryTest.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/test/java/org/apache/commons/net/ftp/parser/DefaultFTPFileEntryParserFactoryTest.java?rev=1074681&r1=1074680&r2=1074681&view=diff
==============================================================================
--- commons/proper/net/trunk/src/test/java/org/apache/commons/net/ftp/parser/DefaultFTPFileEntryParserFactoryTest.java (original)
+++ commons/proper/net/trunk/src/test/java/org/apache/commons/net/ftp/parser/DefaultFTPFileEntryParserFactoryTest.java Fri Feb 25 20:02:17 2011
@@ -139,5 +139,16 @@ public class DefaultFTPFileEntryParserFa
         checkParserClass(factory, FTPClientConfig.SYST_OS2, OS2FTPEntryParser.class);
         checkParserClass(factory, FTPClientConfig.SYST_UNIX, UnixFTPEntryParser.class);
         checkParserClass(factory, FTPClientConfig.SYST_VMS, VMSFTPEntryParser.class);
+
+        checkParserClass(factory, "WINDOWS", NTFTPEntryParser.class); // Same as SYST_NT
+        // This is the way it works at present; config matching is exact
+        checkParserClass(factory, "Windows", CompositeFileEntryParser.class);
+
+        checkParserClass(factory, "OS/400", OS400FTPEntryParser.class); // Same as SYST_OS400
+        // This is the way it works at present; config matching is exact
+        checkParserClass(factory, "OS/400 v1", CompositeFileEntryParser.class);
+
+        // Note: exact matching via config is the only way to generate NTFTPEntryParser and OS400FTPEntryParser
+        // using DefaultFTPFileEntryParserFactory
     }
 }