Registry /
testing / spring-boot-test-autoconfigure
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
AutoConfigureMockMvc
✓ org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc
Tests a Spring Boot controller using MockMvc.
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.web.servlet.MockMvc;
@SpringBootTest
@AutoConfigureMockMvc
public class ExampleTest {
@Autowired
private MockMvc mockMvc;
@Test
public void test() throws Exception {
mockMvc.perform(get("/")).andExpect(status().isOk());
}
}
Debug
Known issues
No known issues recorded.
Audit
Dependencies
No dependency data recorded yet.