Fix use of deprecated API.
This commit is contained in:
parent
4b9cb6afee
commit
dfdb801533
|
|
@ -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 {
|
||||||
@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]+")));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue