Browse Source

Fix use of deprecated API.

pull/2459/head
Stephane Nicoll 11 years ago
parent
commit
dfdb801533
  1. 2
      spring-boot-samples/spring-boot-sample-web-groovy-templates/src/test/java/sample/ui/MessageControllerWebTests.java
  2. 2
      spring-boot-samples/spring-boot-sample-web-ui/src/test/java/sample/ui/MessageControllerWebTests.java

2
spring-boot-samples/spring-boot-sample-web-groovy-templates/src/test/java/sample/ui/MessageControllerWebTests.java

@ -70,7 +70,7 @@ public class MessageControllerWebTests { @@ -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]+")));
}

2
spring-boot-samples/spring-boot-sample-web-ui/src/test/java/sample/ui/MessageControllerWebTests.java

@ -68,7 +68,7 @@ public class MessageControllerWebTests { @@ -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]+")));
}

Loading…
Cancel
Save