Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore advanced testing techniques for Spring Boot applications in this comprehensive conference talk from Spring I/O 2019. Delve into the importance of efficient testing practices, learning when to use unit tests versus integration tests. Gain in-depth knowledge of Spring Boot's advanced testing features, including @MockBean, @SpyBean, and test slices. Discover how to name tests effectively, utilize RestServiceServer and Spring Data, and implement Test Containers. Examine the concept of integration test context cache and understand Spring Boot Test overview. Learn about slice test support and annotations through practical examples involving customer and order repositories. Master the implementation of Mock MVC and explore Spring Boot JUnit 5 integration. Apply these insights to enhance the reliability and efficiency of your Spring Boot application testing process.
Syllabus
Intro
Why Test
Unit Tests
Naming Tests
RestServiceServer
Spring Data
Test Containers
What is Test Containers
What is Integration Test
Context Cache
Integration Test
Spring Boot Test Overview
Slice Test Support
Slice Annotations
Example Application
Mock Bean
Customer Repository
Order Repository
Mock MVC
Spring Boot JUnit 5
Outro
Taught by
Spring I/O