Skip to content

Commit 2e76687

Browse files
committed
Merge branch '1.4.x' into 1.5.x
2 parents 218d28f + 5f44598 commit 2e76687

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/mvc/NoSpringSecurityHealthMvcEndpointIntegrationTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@
3636
import org.springframework.context.annotation.Configuration;
3737
import org.springframework.mock.web.MockServletContext;
3838
import org.springframework.test.web.servlet.MockMvc;
39+
import org.springframework.test.web.servlet.setup.MockMvcBuilders;
3940
import org.springframework.web.context.support.AnnotationConfigWebApplicationContext;
4041

4142
import static org.hamcrest.CoreMatchers.containsString;
4243
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
4344
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content;
4445
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
45-
import static org.springframework.test.web.servlet.setup.MockMvcBuilders.webAppContextSetup;
4646

4747
/**
4848
* Integration tests for the health endpoint when Spring Security is not available.
@@ -66,7 +66,7 @@ public void healthDetailIsPresent() throws Exception {
6666
this.context.setServletContext(new MockServletContext());
6767
this.context.register(TestConfiguration.class);
6868
this.context.refresh();
69-
MockMvc mockMvc = webAppContextSetup(this.context).build();
69+
MockMvc mockMvc = MockMvcBuilders.webAppContextSetup(this.context).build();
7070
mockMvc.perform(get("/health")).andExpect(status().isOk())
7171
.andExpect(content().string(containsString("\"hello\":\"world\"")));
7272
}

0 commit comments

Comments
 (0)