Commit dfdb8015 authored by Stephane Nicoll's avatar Stephane Nicoll

Fix use of deprecated API.

parent 4b9cb6af
...@@ -70,7 +70,7 @@ public class MessageControllerWebTests { ...@@ -70,7 +70,7 @@ public class MessageControllerWebTests {
@Test @Test
public void testCreate() throws Exception { public void testCreate() throws Exception {
this.mockMvc.perform(post("/").param("text", "FOO text").param("summary", "FOO")) this.mockMvc.perform(post("/").param("text", "FOO text").param("summary", "FOO"))
.andExpect(status().isMovedTemporarily()) .andExpect(status().isFound())
.andExpect(header().string("location", RegexMatcher.matches("/[0-9]+"))); .andExpect(header().string("location", RegexMatcher.matches("/[0-9]+")));
} }
......
...@@ -68,7 +68,7 @@ public class MessageControllerWebTests { ...@@ -68,7 +68,7 @@ public class MessageControllerWebTests {
@Test @Test
public void testCreate() throws Exception { public void testCreate() throws Exception {
this.mockMvc.perform(post("/").param("text", "FOO text").param("summary", "FOO")) this.mockMvc.perform(post("/").param("text", "FOO text").param("summary", "FOO"))
.andExpect(status().isMovedTemporarily()) .andExpect(status().isFound())
.andExpect(header().string("location", RegexMatcher.matches("/[0-9]+"))); .andExpect(header().string("location", RegexMatcher.matches("/[0-9]+")));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment