Advanced Spring: Effective Integration Testing with Spring Boot

Advanced Spring: Effective Integration Testing with Spring Boot

English | MP4 | AVC 1280×720 | AAC 48KHz 2ch | 1h 15m | 223 MB

Writing and running tests is an essential part of delivering reliable software, but we don’t always do so as efficiently as we could. Have you ever been in a situation where all the tests pass, yet the application still doesn’t work? In this course, instructor Terezija Semenski gets you up to speed on how to take advantage of advanced testing features in Spring Boot. Terezija explains the importance of testing and shows you how to get started with Spring Boot libraries. She covers how to leverage a Spring Boot test slice to test only a small part of your application. Terezija goes over how to verify that cache has been implemented properly. She describes what a web controller actually does and ways to create integration tests against a web controller. Terezija goes over features that help with error handling and explains how to write an integration test without making an external API call. Terezija concludes by showing you how to keep the client and web app message contract in sync.

Table of Contents

Introduction
1 Take advantage of Spring Boots advanced testing features
2 What you need to know
3 Why bother testing

Explore the Power of Spring Boot Libraries
4 Creating a Spring Boot application from start.spring.io
5 Creating human-readable tests with Mockito and AssertJ

Integration Testing Against a Real Database
6 Effective ways to test your data access
7 Writing integration tests for a JPA repository
8 Challenge Write tests for a custom query
9 Solution Write tests for a custom query

Integration Testing Against Services with Caching Support
10 Writing integration tests for the service layer
11 Writing integration tests for cache
12 Challenge Write an integration test for exceptions
13 Solution Write an integration test for exceptions

Integration Testing Against a Web Controller
14 Which type of web controller responsibilities to test
15 Writing integration tests for a web controller
16 Testing custom exception returns

Missing Chapter Title in Milton
17 Integration testing without making an external API call
18 Writing integration tests for rest endpoints
19 Introduction to Spring Cloud Contract
20 More Spring Boot integration testing resources

Conclusion
21 Ensuring client app (rest call) and web app (controller) are in sync