-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #152 : Misspelled getReceviedMessagesForDomain method
- Loading branch information
1 parent
372a1b6
commit 17a8b46
Showing
6 changed files
with
36 additions
and
10 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 |
---|---|---|
|
@@ -54,8 +54,8 @@ public void testSendAndReceive() throws UnsupportedEncodingException, MessagingE | |
assertEquals(msg.getSubject(), msgReceived.getSubject()); | ||
|
||
// Alternative 3: ... directly fetch sent message using GreenMail API | ||
assertEquals(1, greenMail.getReceviedMessagesForDomain("[email protected]").length); | ||
msgReceived = greenMail.getReceviedMessagesForDomain("[email protected]")[0]; | ||
assertEquals(1, greenMail.getReceivedMessagesForDomain("[email protected]").length); | ||
msgReceived = greenMail.getReceivedMessagesForDomain("[email protected]")[0]; | ||
assertEquals(msg.getSubject(), msgReceived.getSubject()); | ||
|
||
store.close(); | ||
|
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 |
---|---|---|
|
@@ -28,8 +28,8 @@ public void testSmtpServerBasic() throws MessagingException { | |
GreenMailUtil.sendTextEmailTest("[email protected]", "[email protected]", "subject", "body"); | ||
GreenMailUtil.sendTextEmailTest("[email protected]", "[email protected]", "subject", "body"); | ||
assertEquals(6, greenMail.getReceivedMessages().length); | ||
assertEquals(2, greenMail.getReceviedMessagesForDomain("domain1.com").length); | ||
assertEquals(1, greenMail.getReceviedMessagesForDomain("domain2.com").length); | ||
assertEquals(3, greenMail.getReceviedMessagesForDomain("domain3.com").length); | ||
assertEquals(2, greenMail.getReceivedMessagesForDomain("domain1.com").length); | ||
assertEquals(1, greenMail.getReceivedMessagesForDomain("domain2.com").length); | ||
assertEquals(3, greenMail.getReceivedMessagesForDomain("domain3.com").length); | ||
} | ||
} |
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 |
---|---|---|
|
@@ -418,8 +418,8 @@ <h3 id="ex_javamail_send_retrieve" class="anchor">Testing using plain JavaMail f | |
... | ||
|
||
// Alternative 3: ... directly fetch sent message using GreenMail API | ||
assertEquals(1, greenMail.getReceviedMessagesForDomain("[email protected]").length); | ||
msgReceived = greenMail.getReceviedMessagesForDomain("[email protected]")[0]; | ||
assertEquals(1, greenMail.getReceivedMessagesForDomain("[email protected]").length); | ||
msgReceived = greenMail.getReceivedMessagesForDomain("[email protected]")[0]; | ||
... | ||
} | ||
</code></pre><!-- @formatter:on --> | ||
|