Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

LinkedIn Learning

Advanced Spring: Effective Integration Testing with Spring Boot

via LinkedIn Learning

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Learn how to write several types of integration testing for both web and client applications, using Spring Boot.

Syllabus

Introduction
  • Take advantage of Spring events
  • What you need to know
  • Why bother testing?
1. Explore the Power of Spring Boot Libraries
  • Creating a Spring Boot application from start.spring.io
  • Creating human-readable tests with Mockito and AssertJ
2. Integration Testing Against a Real Database
  • Effective ways to test your data access
  • Writing integration tests for a JPA repository
  • Challenge: Write tests for a custom query
  • Solution: Write tests for a custom query
3. Integration Testing Against Services with Caching Support
  • Writing integration tests for the service layer
  • Writing integration tests for cache
  • Challenge: Write an integration test for exceptions
  • Solution: Write an integration test for exceptions
4. Integration Testing Against a Web Controller
  • Which type of web controller responsibilities to test?
  • Writing integration tests for a web controller
  • Testing custom exception returns
5. Integration Testing for the Client App
  • Integration testing without making an external API call
  • Writing integration tests for rest endpoints
  • Introduction to Spring Cloud Contract
  • Ensuring client app (rest call) and web app (controller) are in sync
Conclusion
  • More Spring Boot integration testing resources

Taught by

Terezija Semenski

Reviews

4.6 rating at LinkedIn Learning based on 196 ratings

Start your review of Advanced Spring: Effective Integration Testing with Spring Boot

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.