fixed failing tests from changing from URL
parent
1c83636c8e
commit
8d6524b098
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue