Skip to content

Commit dfdb801

Browse files
committed
Fix use of deprecated API.
1 parent 4b9cb6a commit dfdb801

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public void testHome() throws Exception {
7070
@Test
7171
public void testCreate() throws Exception {
7272
this.mockMvc.perform(post("/").param("text", "FOO text").param("summary", "FOO"))
73-
.andExpect(status().isMovedTemporarily())
73+
.andExpect(status().isFound())
7474
.andExpect(header().string("location", RegexMatcher.matches("/[0-9]+")));
7575
}
7676

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public void testHome() throws Exception {
6868
@Test
6969
public void testCreate() throws Exception {
7070
this.mockMvc.perform(post("/").param("text", "FOO text").param("summary", "FOO"))
71-
.andExpect(status().isMovedTemporarily())
71+
.andExpect(status().isFound())
7272
.andExpect(header().string("location", RegexMatcher.matches("/[0-9]+")));
7373
}
7474

0 commit comments

Comments
 (0)