Skip to content

Commit fc5ab56

Browse files
committed
Fix location url in test
See gh-6956
1 parent 4ab896a commit fc5ab56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-boot-samples/spring-boot-sample-hypermedia-jpa/src/test/java/sample/hypermedia/jpa/SampleHypermediaJpaApplicationIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public void docs() throws Exception {
8383
public void browser() throws Exception {
8484
MvcResult response = this.mockMvc.perform(get("/").accept(MediaType.TEXT_HTML))
8585
.andExpect(status().isFound()).andReturn();
86-
assertEquals("/browser/index.html#",
86+
assertEquals("http://localhost/browser/index.html#/",
8787
response.getResponse().getHeaders("location").get(0));
8888
}
8989

0 commit comments

Comments
 (0)