org.apache.commons.net.ftp.parser
Class FTPConfigEntryParserTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.net.ftp.parser.FTPConfigEntryParserTest
All Implemented Interfaces:
junit.framework.Test

public class FTPConfigEntryParserTest
extends junit.framework.TestCase

This is a simple TestCase that tests entry parsing using the new FTPClientConfig mechanism. The normal FTPClient cannot handle the different date formats in these entries, however using a configurable format, we can handle it easily. The original system presenting this issue was an AIX system - see bug #27437 for details.

Version:
$Id$

Constructor Summary
FTPConfigEntryParserTest()
           
 
Method Summary
 void testParseEntryWithSymlink()
          This is a new format reported on the mailing lists.
 void testParseFieldsOnAIX()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FTPConfigEntryParserTest

public FTPConfigEntryParserTest()
Method Detail

testParseFieldsOnAIX

public void testParseFieldsOnAIX()

testParseEntryWithSymlink

public void testParseEntryWithSymlink()
This is a new format reported on the mailing lists. Parsing this kind of entry necessitated changing the regex in the parser.



Copyright © 1997-2011 Apache Software Foundation. All Rights Reserved.