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

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

public class MVSFTPEntryParserTest
extends FTPParseTestFramework

Changed on August 31, 2006
Test suite addapted to new MVSFTPEntryParser.java.

Version:
$Id: MVSFTPEntryParserTest.java,v 1.16 2005/01/02 03:17:50 scohen Exp $
Author:
Henrik Sorensen Created on Apr 6, 2005
, William Noto

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

MVSFTPEntryParserTest

public MVSFTPEntryParserTest(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[]

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[]

getAllGoodListings

protected List<String[]> getAllGoodListings()
See Also:
org.apache.commons.net.ftp.parser.FTPParseTestFramework#getAllGoodListings()

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

suite

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

Returns:
TestSuite

testGoodListing

public void testGoodListing()
                     throws Exception
Description copied from class: FTPParseTestFramework
Method testGoodListing. Test that parser provided listings pass.

Overrides:
testGoodListing in class FTPParseTestFramework
Throws:
Exception

testMemberListing

public void testMemberListing()
                       throws Exception
Throws:
Exception

testJesLevel1Listing

public void testJesLevel1Listing()

testJesLevel2Listing

public void testJesLevel2Listing()

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

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


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