-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from aboutbits/add-reply-to
add replyTo feature
- Loading branch information
Showing
7 changed files
with
78 additions
and
12 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
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 |
---|---|---|
|
@@ -56,6 +56,8 @@ void givenRequiredParameters_schedule_shouldCreateNewNotification() throws Email | |
assertThat(result.subject()).isEqualTo(parameter.email().subject()); | ||
assertThat(result.fromAddress()).isEqualTo(parameter.email().fromAddress()); | ||
assertThat(result.fromName()).isEqualTo(parameter.email().fromName()); | ||
assertThat(result.replyToAddress()).isEqualTo(parameter.email().replyToAddress()); | ||
assertThat(result.replyToName()).isEqualTo(parameter.email().replyToName()); | ||
assertThat(result.recipients()).containsAll(parameter.email().recipients()); | ||
assertThat(result.textBody()).isEqualTo(parameter.email().textBody()); | ||
assertThat(result.htmlBody()).isEqualTo(parameter.email().htmlBody()); | ||
|
@@ -76,6 +78,8 @@ void givenRequiredParameterWithAttachedFiles_schedule_shouldCreateNewNotificatio | |
assertThat(result.subject()).isEqualTo(parameter.email().subject()); | ||
assertThat(result.fromAddress()).isEqualTo(parameter.email().fromAddress()); | ||
assertThat(result.fromName()).isEqualTo(parameter.email().fromName()); | ||
assertThat(result.replyToAddress()).isEqualTo(parameter.email().replyToAddress()); | ||
assertThat(result.replyToName()).isEqualTo(parameter.email().replyToName()); | ||
assertThat(result.recipients()).containsAll(parameter.email().recipients()); | ||
assertThat(result.textBody()).isEqualTo(parameter.email().textBody()); | ||
assertThat(result.htmlBody()).isEqualTo(parameter.email().htmlBody()); | ||
|
@@ -94,6 +98,8 @@ void givenRequiredParameters_sendOrFail_shouldCreateNewNotification() throws Ema | |
assertThat(result.subject()).isEqualTo(parameter.email().subject()); | ||
assertThat(result.fromAddress()).isEqualTo(parameter.email().fromAddress()); | ||
assertThat(result.fromName()).isEqualTo(parameter.email().fromName()); | ||
assertThat(result.replyToAddress()).isEqualTo(parameter.email().replyToAddress()); | ||
assertThat(result.replyToName()).isEqualTo(parameter.email().replyToName()); | ||
assertThat(result.recipients()).containsAll(parameter.email().recipients()); | ||
assertThat(result.textBody()).isEqualTo(parameter.email().textBody()); | ||
assertThat(result.htmlBody()).isEqualTo(parameter.email().htmlBody()); | ||
|
@@ -115,6 +121,8 @@ void givenRequiredParameterWithAttachedFiles_sendOrFail_shouldCreateNewNotificat | |
assertThat(result.subject()).isEqualTo(parameter.email().subject()); | ||
assertThat(result.fromAddress()).isEqualTo(parameter.email().fromAddress()); | ||
assertThat(result.fromName()).isEqualTo(parameter.email().fromName()); | ||
assertThat(result.replyToAddress()).isEqualTo(parameter.email().replyToAddress()); | ||
assertThat(result.replyToName()).isEqualTo(parameter.email().replyToName()); | ||
assertThat(result.recipients()).containsAll(parameter.email().recipients()); | ||
assertThat(result.textBody()).isEqualTo(parameter.email().textBody()); | ||
assertThat(result.htmlBody()).isEqualTo(parameter.email().htmlBody()); | ||
|
@@ -179,6 +187,8 @@ private static EmailParameter getValidParameterWithoutAttachment() { | |
.recipient("[email protected]") | ||
.fromAddress("[email protected]") | ||
.fromName("somebody") | ||
.replyToAddress("[email protected]") | ||
.replyToName("somebodyElse") | ||
.build() | ||
).build(); | ||
} | ||
|
@@ -201,6 +211,8 @@ private static EmailParameter getValidParameterWithAttachment() { | |
) | ||
.fromAddress("[email protected]") | ||
.fromName("somebody") | ||
.replyToAddress("[email protected]") | ||
.replyToName("somebodyElse") | ||
.build() | ||
).build(); | ||
} | ||
|
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