assertEquals("some file.dat", field.getFilename());
assertEquals(300, field.getSize());
}
public void testContentDispositionFilenameSizeDate() throws Exception {
ContentDispositionField field = Fields.contentDisposition("attachment",
"some file.dat", 300, new Date(1000), new Date(2000), new Date(
3000));
assertTrue(field.isValidField());
assertEquals("attachment", field.getDispositionType());
assertEquals("some file.dat", field.getFilename());
assertEquals(300, field.getSize());
assertEquals(new Date(1000), field.getCreationDate());
assertEquals(new Date(2000), field.getModificationDate());
assertEquals(new Date(3000), field.getReadDate());
}