-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added back keycloak odic added report-service resourceserver
- Loading branch information
1 parent
5038c86
commit 09a2617
Showing
63 changed files
with
3,487 additions
and
940 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,16 +17,27 @@ | |
class EmailResourceIT { | ||
|
||
@Test | ||
void sayHello2(@Autowired MockMvc mvc) throws Exception { | ||
void canSendEmail(@Autowired MockMvc mvc) throws Exception { | ||
|
||
mvc.perform( | ||
post("/sendEmail") | ||
.contentType(MediaType.APPLICATION_JSON) | ||
.content(sampleEmail().getBytes())) | ||
post("/sendEmail") | ||
.contentType(MediaType.APPLICATION_JSON) | ||
.content(sampleEmail().getBytes())) | ||
.andExpect(status().isOk()); | ||
} | ||
|
||
String sampleEmail() { | ||
return "{\"from\":\"[email protected]\",\"subject\":\"Test\",\"content\":\"Body\",\"isHtml\":false,\"files\":[],\"to\":[\"[email protected]\"],\"cc\":[],\"bcc\":[]}"; | ||
return """ | ||
{ | ||
"fromEmail":"[email protected]", | ||
"subject":"Test", | ||
"content":"Body", | ||
"isHtml":false, | ||
"files":[], | ||
"to":["[email protected]"] | ||
,"cc":[], | ||
"bcc":[] | ||
} | ||
"""; | ||
} | ||
} |
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
Oops, something went wrong.