Methods Summary |
---|
protected java.lang.String[] | getBadListing()
return badsamples;
|
protected java.lang.String[] | getGoodListing()
return goodsamples;
|
protected org.apache.commons.net.ftp.FTPFileEntryParser | getParser()
return new CompositeFileEntryParser(new FTPFileEntryParser[]
{
new MVSFTPEntryParser(),
});
|
public static junit.framework.TestSuite | suite()Method suite.
return(new TestSuite(MVSFTPEntryParserTest.class));
|
public void | testParseFieldsOnDirectory()
// I don't really know how to test this because the MVS system that I
// connect with does not allow me to create directories.
|
public void | testParseFieldsOnFile()
FTPFile file = getParser().parseFTPEntry("Migrated file1.I");
assertNotNull("Could not parse entry.", file);
assertTrue("Should have been a file.", file.isFile());
assertEquals("file1.I", file.getName());
FTPFile file2 = getParser().parseFTPEntry("PSMLC1 3390 2005/04/04 1 1 VB 27994 27998 PS file2.I");
assertNotNull("Could not parse entry.", file2);
assertTrue("Should have been a file.", file2.isFile());
assertEquals("file2.I", file2.getName());
|