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

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.NetwareFTPEntryParserTest
All Implemented Interfaces:
junit.framework.Test

public class NetwareFTPEntryParserTest
extends FTPParseTestFramework

Version:
$Id: NetwareFTPEntryParserTest.java 492109 2007-01-03 11:24:57Z rwinston $
Author:
Rory Winston

Field Summary
 
Fields inherited from class org.apache.commons.net.ftp.parser.FTPParseTestFramework
df
 
Constructor Summary
NetwareFTPEntryParserTest(String name)
           
 
Method Summary
protected  String[] getBadListing()
          Method getBadListing.
protected  String[] getGoodListing()
          Method getGoodListing.
protected  org.apache.commons.net.ftp.FTPFileEntryParser getParser()
          Method getParser.
static junit.framework.TestSuite suite()
          Method suite.
 void testParseFieldsOnDirectory()
          Method testParseFieldsOnDirectory.
 void testParseFieldsOnFile()
          Method testParseFieldsOnFile.
 
Methods inherited from class org.apache.commons.net.ftp.parser.FTPParseTestFramework
doAdditionalBadTests, doAdditionalGoodTests, nullFileOrNullDate, setUp, testBadListing, testGoodListing
 
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

NetwareFTPEntryParserTest

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

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 org.apache.commons.net.ftp.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()

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

suite

public static junit.framework.TestSuite suite()
Method suite.

Returns:
TestSuite


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