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

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

public class VMSFTPEntryParserTest
extends FTPParseTestFramework

Version:
$Id: VMSFTPEntryParserTest.java 1407341 2012-11-09 01:31:00Z ggregory $
Author:
Steve Cohen, Stephane ESTE-GRACIAS

Field Summary
 
Fields inherited from class org.apache.commons.net.ftp.parser.FTPParseTestFramework
df
 
Constructor Summary
VMSFTPEntryParserTest(String name)
           
 
Method Summary
 void assertFileInListing(FTPFile[] listing, String name)
           
 void assertFileNotInListing(FTPFile[] listing, String name)
           
protected  String[] getBadListing()
          Method getBadListing.
protected  String[] getGoodListing()
          Method getGoodListing.
protected  FTPFileEntryParser getParser()
          Method getParser.
protected  FTPFileEntryParser getVersioningParser()
           
 void testParseFieldsOnDirectory()
          Method testParseFieldsOnDirectory.
 void testParseFieldsOnFile()
          Method testParseFieldsOnFile.
 void testWholeListParse()
          Test the parsing of the whole list.
 void testWholeListParseWithVersioning()
          Test the parsing of the whole list.
 
Methods inherited from class org.apache.commons.net.ftp.parser.FTPParseTestFramework
doAdditionalBadTests, doAdditionalGoodTests, nullFileOrNullDate, setUp, testBadListing, testGoodListing
 
Methods inherited from class junit.framework.TestCase
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VMSFTPEntryParserTest

public VMSFTPEntryParserTest(String name)
See Also:
TestCase.TestCase(String)
Method Detail

testWholeListParse

public void testWholeListParse()
                        throws IOException
Test the parsing of the whole list.

Throws:
IOException

testWholeListParseWithVersioning

public void testWholeListParseWithVersioning()
                                      throws IOException
Test the parsing of the whole list.

Throws:
IOException

assertFileInListing

public void assertFileInListing(FTPFile[] listing,
                                String name)

assertFileNotInListing

public void assertFileNotInListing(FTPFile[] listing,
                                   String name)

testParseFieldsOnDirectory

public void testParseFieldsOnDirectory()
                                throws Exception
Description copied from class: FTPParseTestFramework
Method testParseFieldsOnDirectory. Provide a test to show that fields on a directory entry are parsed correctly.

Specified by:
testParseFieldsOnDirectory in class FTPParseTestFramework
Throws:
Exception
See Also:
FTPParseTestFramework.testParseFieldsOnDirectory()

testParseFieldsOnFile

public void testParseFieldsOnFile()
                           throws Exception
Description copied from class: FTPParseTestFramework
Method testParseFieldsOnFile. Provide a test to show that fields on a file entry are parsed correctly.

Specified by:
testParseFieldsOnFile in class FTPParseTestFramework
Throws:
Exception
See Also:
FTPParseTestFramework.testParseFieldsOnFile()

getBadListing

protected String[] getBadListing()
Description copied from class: FTPParseTestFramework
Method getBadListing. Implementors must provide a listing that contains failures.

Specified by:
getBadListing in class FTPParseTestFramework
Returns:
String[]
See Also:
FTPParseTestFramework.getBadListing()

getGoodListing

protected String[] getGoodListing()
Description copied from class: FTPParseTestFramework
Method getGoodListing. Implementors must provide a listing that passes.

Specified by:
getGoodListing in class FTPParseTestFramework
Returns:
String[]
See Also:
FTPParseTestFramework.getGoodListing()

getParser

protected FTPFileEntryParser getParser()
Description copied from class: FTPParseTestFramework
Method getParser. Provide the parser to use for testing.

Specified by:
getParser in class FTPParseTestFramework
Returns:
FTPFileEntryParser
See Also:
FTPParseTestFramework.getParser()

getVersioningParser

protected FTPFileEntryParser getVersioningParser()


Copyright © 2001-2014 The Apache Software Foundation. All Rights Reserved.