Skip to content

Commit

Permalink
#73: added testcase, asserting just what is returned (not what we exp…
Browse files Browse the repository at this point in the history
…ect, because that's not really clear to me right now)
  • Loading branch information
bbottema committed Apr 5, 2024
1 parent 1b789d8 commit d4b9bae
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Binary file not shown.

0 comments on commit d4b9bae

Please sign in to comment.