Return-Path: Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: (qmail 14969 invoked from network); 25 Feb 2011 20:02:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Feb 2011 20:02:42 -0000 Received: (qmail 12598 invoked by uid 500); 25 Feb 2011 20:02:42 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 12316 invoked by uid 500); 25 Feb 2011 20:02:41 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 12309 invoked by uid 99); 25 Feb 2011 20:02:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Feb 2011 20:02:40 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Feb 2011 20:02:38 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 5C4A423889B2; Fri, 25 Feb 2011 20:02:17 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1074681 - /commons/proper/net/trunk/src/test/java/org/apache/commons/net/ftp/parser/DefaultFTPFileEntryParserFactoryTest.java Date: Fri, 25 Feb 2011 20:02:17 -0000 To: commits@commons.apache.org From: sebb@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110225200217.5C4A423889B2@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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 } }