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

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
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
NTFTPEntryParserTest, OS400FTPEntryParserTest

public abstract class CompositeFTPParseTestFramework
extends FTPParseTestFramework

Version:
$Id: CompositeFTPParseTestFramework.java 155429 2005-02-26 13:13:04Z dirkv $
Author:
MarioIvankovits

Field Summary
 
Fields inherited from class org.apache.commons.net.ftp.parser.FTPParseTestFramework
df
 
Constructor Summary
CompositeFTPParseTestFramework(String name)
           
 
Method Summary
protected  String[] getBadListing()
          Method getBadListing.
protected abstract  String[][] getBadListings()
          Method getBadListing.
protected  String[] getGoodListing()
          Method getGoodListing.
protected abstract  String[][] getGoodListings()
          Method getGoodListing.
 void testBadListing()
          Method testBadListing.
 void testConsistentListing()
           
 void testInconsistentListing()
           
 
Methods inherited from class org.apache.commons.net.ftp.parser.FTPParseTestFramework
doAdditionalBadTests, doAdditionalGoodTests, getParser, nullFileOrNullDate, setUp, testGoodListing, testParseFieldsOnDirectory, testParseFieldsOnFile
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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

CompositeFTPParseTestFramework

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

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

getBadListings

protected abstract String[][] getBadListings()
Method getBadListing. Implementors must provide multiple listing that contains failures and must force the composite parser to switch the FtpEntryParser

Returns:
String[]

getGoodListings

protected abstract String[][] getGoodListings()
Method getGoodListing. Implementors must provide multiple listing that passes and must force the composite parser to switch the FtpEntryParser

Returns:
String[]

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

testConsistentListing

public void testConsistentListing()
                           throws Exception
Throws:
Exception

testBadListing

public void testBadListing()
                    throws Exception
Description copied from class: FTPParseTestFramework
Method testBadListing. Tests that parser provided failures actually fail.

Overrides:
testBadListing in class FTPParseTestFramework
Throws:
Exception

testInconsistentListing

public void testInconsistentListing()
                             throws Exception
Throws:
Exception


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