fixed failing tests from changing from URL

pull/21/head
Niclas Thobaben 2022-02-15 13:40:36 +01:00
parent 1c83636c8e
commit 8d6524b098
1 changed files with 3 additions and 3 deletions

View File

@ -52,7 +52,7 @@ public class ForwardMessageFormTest {
@Test
void forwardMessageRedirectsToOnSuccessUrl() throws Exception {
mockMvc.perform(post("/form").contentType(MediaType.APPLICATION_FORM_URLENCODED)
mockMvc.perform(post("/send").contentType(MediaType.APPLICATION_FORM_URLENCODED)
.param("token", TOKEN)
.param("subject", "subject")
.param("content", "message")
@ -65,7 +65,7 @@ public class ForwardMessageFormTest {
@Test
void forwardMessageRedirectsToRefererIfOnSuccessIsNotSet() throws Exception {
mockMvc.perform(post("/form").contentType(MediaType.APPLICATION_FORM_URLENCODED)
mockMvc.perform(post("/send").contentType(MediaType.APPLICATION_FORM_URLENCODED)
.param("token", TOKEN)
.param("subject", "subject")
.param("content", "message")
@ -78,7 +78,7 @@ public class ForwardMessageFormTest {
@Test
void forwardMessageRedirectsToOnErrorWhenAnErrorOccurs() throws Exception {
mockMvc.perform(post("/form").contentType(MediaType.APPLICATION_FORM_URLENCODED)
mockMvc.perform(post("/send").contentType(MediaType.APPLICATION_FORM_URLENCODED)
.param("subject", "subject")
.param("message", "message")
.param("from", "sender@company.com")