-
-
Notifications
You must be signed in to change notification settings - Fork 271
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…s and fixed the EqualsHelper)
- Loading branch information
Showing
4 changed files
with
45 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
package testutil; | ||
|
||
import org.simplejavamail.email.Email; | ||
import org.simplejavamail.email.Recipient; | ||
|
||
import javax.annotation.Nullable; | ||
import javax.mail.util.ByteArrayDataSource; | ||
|
@@ -32,6 +33,12 @@ public static Email createDummyEmail(@Nullable String id) | |
emailNormal.setTextHTML("<b>We should meet up!</b><img src='cid:thumbsup'>"); | ||
emailNormal.setSubject("hey"); | ||
|
||
emailNormal.addHeader("dummyHeader", "dummyHeaderValue"); | ||
emailNormal.setUseDispositionNotificationTo(true); | ||
emailNormal.setDispositionNotificationTo(new Recipient(null, "[email protected]", null)); | ||
emailNormal.setUseReturnReceiptTo(true); | ||
emailNormal.setReturnReceiptTo(new Recipient("Complex Email", "[email protected]", null)); | ||
|
||
// add two text files in different ways and a black thumbs up embedded image -> | ||
ByteArrayDataSource namedAttachment = new ByteArrayDataSource("Black Tie Optional", "text/plain"); | ||
namedAttachment.setName("dresscode.txt"); // normally not needed, but otherwise the equals will fail | ||
|