Fix use of deprecated API.

This commit is contained in:
Stephane Nicoll 2015-02-02 11:34:21 +01:00
parent 4b9cb6afee
commit dfdb801533
2 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ public class MessageControllerWebTests {
@Test
public void testCreate() throws Exception {
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]+")));
}

View File

@ -68,7 +68,7 @@ public class MessageControllerWebTests {
@Test
public void testCreate() throws Exception {
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]+")));
}