* @see FTPParseTestFramework#testParseFieldsOnFile()
*/
@Override
public void testParseFieldsOnFile() throws Exception
{
FTPFile f = getParser().parseFTPEntry("PEP 5000000000 04/03/24 14:06:29 *STMF build.xml");
assertNotNull("Could not parse entry.",
f);
assertTrue("Should have been a file.",
f.isFile());
assertEquals("PEP",
f.getUser());
assertEquals("build.xml",
f.getName());
assertEquals(5000000000L,
f.getSize());
Calendar cal = Calendar.getInstance();
cal.set(Calendar.DATE, 24);
cal.set(Calendar.MONTH, Calendar.MARCH);
cal.set(Calendar.YEAR, 2004);
cal.set(Calendar.HOUR_OF_DAY, 14);
cal.set(Calendar.MINUTE, 6);
cal.set(Calendar.SECOND, 29);
assertEquals(df.format(cal.getTime()),
df.format(f.getTimestamp().getTime()));
}