Tag

mockmvc

0 views collected around this technical thread.

Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 11, 2025 · Backend Development

Master Spring Boot Testing: Real‑World Cases and Advanced Techniques

This article provides a comprehensive guide to Spring Boot testing, covering core utilities, essential annotations, dependency libraries, web environment configurations, and practical code examples for unit, slice, and integration tests across JUnit, MockMvc, TestRestTemplate, JPA, Redis, and REST client scenarios.

datajpadataredisjunit5
0 likes · 14 min read
Master Spring Boot Testing: Real‑World Cases and Advanced Techniques
Top Architect
Top Architect
Jan 12, 2021 · Backend Development

Introduction to Mock Testing with Spring MVC and MockMvc

This article introduces mock testing for Spring MVC controllers, explains why mocks are useful, describes the main MockMvc components, shows required Maven dependencies, and provides complete example test cases for both view‑returning and JSON‑returning endpoints using JUnit and MockMvc.

BackendJavaJunit
0 likes · 8 min read
Introduction to Mock Testing with Spring MVC and MockMvc