assertEquals("1", descriptor.getContentDispositionParameters().get("one"));
assertEquals("bar", descriptor.getContentDispositionParameters().get("foo"));
}
public void testContentDispositionStandardParameters() throws Exception {
MaximalBodyDescriptor descriptor = describe(ExampleMail.MULTIPART_WITH_BINARY_ATTACHMENTS_BYTES, 1);
assertEquals("attachment", descriptor.getContentDispositionType());
assertNotNull(descriptor.getContentDispositionParameters());
assertEquals(5, descriptor.getContentDispositionParameters().size());
assertEquals("blob.png", descriptor.getContentDispositionFilename());
assertEquals(new DateTime("2008", 6, 21, 15, 32, 18, 0), descriptor.getContentDispositionModificationDate());
assertEquals(new DateTime("2008", 6, 20, 10, 15, 9, 0), descriptor.getContentDispositionCreationDate());
assertEquals(new DateTime("2008", 6, 22, 12, 8, 56, 0), descriptor.getContentDispositionReadDate());
assertEquals(10234, descriptor.getContentDispositionSize());
}