{"id":56338,"library":"spring-mock","title":"Spring Mock","description":"Provides mock objects and utilities for testing Spring Framework applications.","status":"active","version":"2.0.8","language":"java","source_language":null,"source_url":"http://springframework.cvs.sourceforge.net/springframework/","tags":["spring","testing","mock","web"],"install":[{"cmd":"<dependency>\n  <groupId>org.springframework</groupId>\n  <artifactId>spring-mock</artifactId>\n  <version>2.0.8</version>\n</dependency>","lang":"xml","label":"Maven"},{"cmd":"implementation 'org.springframework:spring-mock:2.0.8'","lang":"groovy","label":"Gradle"}],"dependencies":[],"imports":[{"symbol":"MockHttpServletRequest","correct":"org.springframework.mock.web.MockHttpServletRequest"}],"quickstart":{"code":"import org.springframework.mock.web.MockHttpServletRequest;\n\nMockHttpServletRequest request = new MockHttpServletRequest();","lang":"java","description":"Create a mock HTTP request for testing Spring controllers."},"warnings":[{"fix":"Use spring-test module instead.","message":"This module is outdated and replaced by spring-test; may have compatibility issues with newer Spring versions.","severity":"breaking","affected_versions":"2.x"}],"env_vars":null,"search_vec":"'applic':12 'framework':11 'mock':2,4,15 'object':5 'provid':3 'spring':1,10,13 'test':9,14 'util':7 'web':16","created_at":"2026-06-15T10:32:22.784441+00:00","updated_at":"2026-06-15T10:32:22.784441+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":"http://www.springframework.org","github":null,"docs":"https://appdoc.app/artifact/org.springframework/spring-mock/","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}}