-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#73: added testcase, asserting just what is returned (not what we exp…
…ect, because that's not really clear to me right now)
- Loading branch information
Showing
2 changed files
with
15 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,7 +91,21 @@ public void testGithubIssue31_AttachmentNameWithSpecialCharacters() | |
assertThat(msg.getBodyRTF()).isNotEmpty(); | ||
assertThat(normalizeText(msg.getBodyText())).isEqualTo("Dummy text. Btw, the pdf is actually a .txt\n"); | ||
} | ||
|
||
|
||
@Test | ||
public void testGithubIssue73_AttachmentNameWithSpecialCharacters() | ||
throws IOException { | ||
OutlookMessage msg = parseMsgFile("test-messages/OutlookMessage with X500 dual address.msg"); | ||
|
||
OutlookMessageAssert.assertThat(msg).hasFromName("Sven Sielenkemper"); | ||
OutlookMessageAssert.assertThat(msg).hasFromEmail("[email protected]"); | ||
|
||
OutlookMessageAssert.assertThat(msg).hasOnlyRecipients( | ||
createRecipient("Sven Sielenkemper", "/o=otris/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=ad5e65c5e53d40e2825d738a39904682-sielenkemper"), | ||
createRecipient("[email protected]", "[email protected]") | ||
); | ||
} | ||
|
||
@Test | ||
public void testToAndCCAreSeparated_Multiple() | ||
throws IOException { | ||
|
Binary file added
BIN
+1.95 MB
src/test/resources/test-messages/OutlookMessage with X500 dual address.msg
Binary file not shown.