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

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.CompositeFTPParseTestFramework
                  extended by org.apache.commons.net.ftp.parser.OS400FTPEntryParserTest
All Implemented Interfaces:
junit.framework.Test

public class OS400FTPEntryParserTest
extends CompositeFTPParseTestFramework

Version:
$Id: OS400FTPEntryParserTest.java 1299238 2012-03-10 17:12:28Z sebb $

Field Summary
 
Fields inherited from class org.apache.commons.net.ftp.parser.FTPParseTestFramework
df
 
Constructor Summary
OS400FTPEntryParserTest(String name)
           
 
Method Summary
protected  void doAdditionalGoodTests(String test, FTPFile f)
          during processing you could hook here to do additional tests
protected  String[][] getBadListings()
          Method getBadListing.
protected  String[][] getGoodListings()
          Method getGoodListing.
protected  FTPFileEntryParser getParser()
          Method getParser.
 void testParseFieldsOnDirectory()
          Method testParseFieldsOnDirectory.
 void testParseFieldsOnFile()
          Method testParseFieldsOnFile.
 
Methods inherited from class org.apache.commons.net.ftp.parser.CompositeFTPParseTestFramework
getBadListing, getGoodListing, testBadListing, testConsistentListing, testInconsistentListing
 
Methods inherited from class org.apache.commons.net.ftp.parser.FTPParseTestFramework
doAdditionalBadTests, nullFileOrNullDate, setUp, 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

OS400FTPEntryParserTest

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

getBadListings

protected String[][] getBadListings()
Description copied from class: CompositeFTPParseTestFramework
Method getBadListing. Implementors must provide multiple listing that contains failures and must force the composite parser to switch the FtpEntryParser

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

getGoodListings

protected String[][] getGoodListings()
Description copied from class: CompositeFTPParseTestFramework
Method getGoodListing. Implementors must provide multiple listing that passes and must force the composite parser to switch the FtpEntryParser

Specified by:
getGoodListings in class CompositeFTPParseTestFramework
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()

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()

doAdditionalGoodTests

protected void doAdditionalGoodTests(String test,
                                     FTPFile f)
Description copied from class: FTPParseTestFramework
during processing you could hook here to do additional tests

Overrides:
doAdditionalGoodTests in class FTPParseTestFramework
Parameters:
test - raw entry
f - parsed entry

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()


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