Tagged articles
3 articles
Page 1 of 1
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 21, 2025 · Backend Development

Mastering Spring Boot Controller Tests: 8 Powerful Techniques

This article presents a comprehensive guide to testing Spring Boot controller layers, covering isolated @WebMvcTest, full‑stack @SpringBootTest, WebTestClient, TestRestTemplate, standalone MockMvc, REST Assured, exception‑handling advice, and pure Mockito unit tests, each with purpose, core annotations, sample code, pros, cons, and usage recommendations.

Controller TestingIntegration TestJUnit
0 likes · 20 min read
Mastering Spring Boot Controller Tests: 8 Powerful Techniques
JD Retail Technology
JD Retail Technology
May 13, 2024 · Backend Development

A Minimalist Guide to Setting Up Unit Tests in Spring Boot

This article presents a concise, beginner-friendly approach to building a Spring Boot unit testing environment using only essential Maven dependencies and test classes, covering both integration-style and pure unit test techniques, complete with annotated examples and practical testing tips.

Integration TestJUnitJava
0 likes · 9 min read
A Minimalist Guide to Setting Up Unit Tests in Spring Boot
Programmer DD
Programmer DD
Oct 23, 2019 · Backend Development

Master Spring Boot Testing: Unit and Integration Tests with JUnit, Hamcrest, and MockMvc

This tutorial walks through writing and running unit and integration tests for a Spring Boot application, covering JUnit and Hamcrest assertions, Maven setup, model definitions, service and controller implementations, MockMvc usage, and both mocked and real‑world test scenarios, complete with sample code and output.

HamcrestIntegration TestJUnit
0 likes · 25 min read
Master Spring Boot Testing: Unit and Integration Tests with JUnit, Hamcrest, and MockMvc