Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.commons.net.ftp.parser
Class FTPConfigEntryParserTest  view FTPConfigEntryParserTest download FTPConfigEntryParserTest.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.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$

Field Summary
private  java.text.SimpleDateFormat df
           
 
Fields inherited from class junit.framework.TestCase
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

df

private java.text.SimpleDateFormat df
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.