Introduction
Test-driven development in Spring Boot
()
1. TDD and Spring Boot
Introduction to TDD in Spring Boot
()
Setting up the development environment
()
2. Writing Your First TDD Test
Red phase: Write a failing test
()
Green phase: Implement the minimal code to pass the test
()
Refactor phase: Improve the code quality
()
Repeat: Adding more features
()
3. TDD for the Data Layer
Writing TDD test for the repository
()
Implementing the repository
()
Integration testing with an in-memory database
()
Refactoring the data layer
()
Repeat: Adding the rest of the data layer
()
4. TDD for Services with Mockito
Quick overview of working with Mockito
()
Writing a TDD test for the service layer
()
Implementing the method in the service layer
()
Refactoring the service
()
Repeat: Adding the rest of the service layer
()
5. TDD for Controllers and RESTful APIs
Working with MockMvc
()
Writing the first TDD test for the controller
()
Implementing the method of the controller
()
Refactoring the first method of the controller
()
Repeat: Adding the rest of the controller layer
()
6. TDD Best Practices
Common pitfalls to avoid
()
Best practices for writing maintainable tests
()
TDD workflow in real projects
()