-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
606fa04
commit 7980215
Showing
3 changed files
with
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,7 +64,7 @@ void shouldNotSendMailWhenTokenInvalid() { | |
mockOAuthSuccess(); | ||
|
||
wireMockExtension | ||
.stubFor(post("/chess/uri/mail").willReturn(unauthorized())); | ||
.stubFor(post("/chess/uri/email").willReturn(unauthorized())); | ||
|
||
service | ||
.sendEmail(new ChesRequestDto(List.of("[email protected]"), "simple body"), "Test") | ||
|
@@ -79,7 +79,7 @@ void shouldNotSendMailWhenNoRoleInvalid() { | |
mockOAuthSuccess(); | ||
|
||
wireMockExtension | ||
.stubFor(post("/chess/uri/mail").willReturn(forbidden())); | ||
.stubFor(post("/chess/uri/email").willReturn(forbidden())); | ||
|
||
service | ||
.sendEmail(new ChesRequestDto(List.of("[email protected]"), "simple body"), "Test") | ||
|
@@ -99,7 +99,7 @@ void shouldSendMailWhenAuth(ChesRequestDto body) { | |
|
||
wireMockExtension | ||
.stubFor( | ||
post("/chess/uri/mail") | ||
post("/chess/uri/email") | ||
.willReturn( | ||
ok(TestConstants.CHES_SUCCESS_MESSAGE) | ||
.withHeader("Content-Type", MediaType.APPLICATION_JSON_VALUE) | ||
|
@@ -121,7 +121,7 @@ void shouldFailWith422() { | |
|
||
wireMockExtension | ||
.stubFor( | ||
post("/chess/uri/mail") | ||
post("/chess/uri/email") | ||
.willReturn( | ||
status(422) | ||
.withBody(TestConstants.CHES_422_MESSAGE) | ||
|
@@ -144,7 +144,7 @@ void shouldSendMailWithNoBody() { | |
|
||
wireMockExtension | ||
.stubFor( | ||
post("/chess/uri/mail") | ||
post("/chess/uri/email") | ||
.willReturn( | ||
status(400) | ||
.withBody(TestConstants.CHES_400_MESSAGE) | ||
|
@@ -167,7 +167,7 @@ void shouldFailWith500() { | |
|
||
wireMockExtension | ||
.stubFor( | ||
post("/chess/uri/mail") | ||
post("/chess/uri/email") | ||
.willReturn( | ||
status(500) | ||
.withBody(TestConstants.CHES_500_MESSAGE) | ||
|
@@ -191,7 +191,7 @@ void shouldSendMailMultipleDestination() { | |
|
||
wireMockExtension | ||
.stubFor( | ||
post("/chess/uri/mail") | ||
post("/chess/uri/email") | ||
.willReturn( | ||
ok(TestConstants.CHES_SUCCESS_MESSAGE) | ||
.withHeader("Content-Type", MediaType.APPLICATION_JSON_VALUE) | ||
|