{"id":55806,"library":"spring-boot-test-autoconfigure","title":"Spring Boot Test AutoConfigure","description":"Auto-configuration support for testing Spring Boot applications.","status":"active","version":"4.0.6","language":"java","source_language":null,"source_url":"https://github.com/spring-projects/spring-boot","tags":["spring","boot","test","autoconfigure"],"install":[{"cmd":"<dependency>\n  <groupId>org.springframework.boot</groupId>\n  <artifactId>spring-boot-test-autoconfigure</artifactId>\n  <version>4.0.6</version>\n</dependency>","lang":"xml","label":"Maven"},{"cmd":"implementation 'org.springframework.boot:spring-boot-test-autoconfigure:4.0.6'","lang":"groovy","label":"Gradle"}],"dependencies":[],"imports":[{"symbol":"AutoConfigureMockMvc","correct":"org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc"}],"quickstart":{"code":"import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;\nimport org.springframework.boot.test.context.SpringBootTest;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.test.web.servlet.MockMvc;\n\n@SpringBootTest\n@AutoConfigureMockMvc\npublic class ExampleTest {\n    @Autowired\n    private MockMvc mockMvc;\n\n    @Test\n    public void test() throws Exception {\n        mockMvc.perform(get(\"/\")).andExpect(status().isOk());\n    }\n}","lang":"java","description":"Tests a Spring Boot controller using MockMvc."},"warnings":[],"env_vars":null,"search_vec":"'applic':13 'auto':6 'auto-configur':5 'autoconfigur':4,17 'boot':2,12,15 'configur':7 'spring':1,11,14 'support':8 'test':3,10,16","created_at":"2026-06-15T10:08:19.815660+00:00","updated_at":"2026-06-15T10:08:19.815660+00:00","problems":[],"ecosystem":"maven","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://spring.io/projects/spring-boot","github":"https://github.com/spring-projects/spring-boot","docs":"https://appdoc.app/artifact/org.springframework.boot/spring-boot-test-autoconfigure/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}