Lines Matching refs:MimeMessage
38 * This is a series of unit tests for the MimeMessage class. These tests must be locally
74 * MimeMessage depends on the date formatter, which may emit wrong date format
93 MimeMessage message = new MimeMessage();
111 MimeMessage message1 = new MimeMessage();
112 MimeMessage message2 = new MimeMessage();
135 MimeMessage message = new MimeMessage();
154 MimeMessage message = new MimeMessage();
187 MimeMessage message = new MimeMessage();
203 MimeMessage message = new MimeMessage();
237 MimeMessage message = new MimeMessage();
274 MimeMessage message = new MimeMessage();
321 MimeMessage message = new MimeMessage();
348 MimeMessage message = new MimeMessage();
371 MimeMessage message = new MimeMessage();
407 MimeMessage message = new MimeMessage();
458 MimeMessage mm = null;
459 mm = new MimeMessage(new ByteArrayInputStream(
464 Address[] toAddresses = mm.getRecipients(MimeMessage.RecipientType.TO);
483 MimeMessage mm = null;
484 mm = new MimeMessage(new ByteArrayInputStream(
487 assertEquals(0, mm.getRecipients(MimeMessage.RecipientType.TO).length);
488 assertEquals(0, mm.getRecipients(MimeMessage.RecipientType.CC).length);
489 assertEquals(0, mm.getRecipients(MimeMessage.RecipientType.BCC).length);
504 MimeMessage mm = null;
505 mm = new MimeMessage(new ByteArrayInputStream(
508 assertEquals(0, mm.getRecipients(MimeMessage.RecipientType.TO).length);
509 assertEquals(1, mm.getRecipients(MimeMessage.RecipientType.CC).length);
510 assertEquals("a@b.com", mm.getRecipients(MimeMessage.RecipientType.CC)[0].getAddress());
511 assertEquals(0, mm.getRecipients(MimeMessage.RecipientType.BCC).length);
523 MimeMessage mm = null;
524 mm = new MimeMessage(new ByteArrayInputStream(entireMessage.getBytes("us-ascii")));
541 MimeMessage mm = null;
542 mm = new MimeMessage(new ByteArrayInputStream(entireMessage.getBytes("us-ascii")));