About this course
Early-bird access to the Testing Spring Boot Applications Masterclass.
Learn everything you need to know about testing Spring Boot applications and make the most of the testing libraries like JUnit 5, Mockito, Selenium, WireMock, Testcontainers, LocalStack, Awaitility while using a real word application example: Java 14, Spring Boot 2.3, React, TypeScript, AWS, PostgreSQL, and Keycloak.
Get more information about this Masterclass here.
Introduction to the Masterclass
Discover the testing libraries that every Spring Boot application has on-board out-of-the-box: JUnit 5, Mockito, AssertJ, Hamcrest, JSONAssert, JsonPath
Start writing efficient tests for your database layer while utilizing Spring Boot test features like @DataJpaTest, TestEntityManager, @Sql, etc.
Furthermore, with this module you'll start using Testcontainers to replace the default in-memory database, learn how you can pre-populate your database, and understand the pitfalls when writing tests where the EntityManger is involved.
MockMvc to the rescue!
Learn how to effectively test your web-layer (@RestController and @Controller) in isolation. You have your endpoints secured with Spring Security? No problem! There is great support available to ensure only authenticated users with the correct privileges reach your endpoints.
Ever wanted to know how to test your WebClient or RestTemplate HTTP calls? How to ensure your business logic is working as expected and how to verify your messaging controllers?
In this module, we'll tackle further slices to effectively test different parts of our application in isolation. In addition, we'll write our own test slice.
It's time to write integration tests using @SpringBootTest!
With the knowledge of previous modules, we can mock almost any external infrastructure component, expect Keycloak. Therefore we'll make use of WireMock to mock the HTTP interaction with the identity provider or any other system during application startup (e.g. Salesforce, Stripe, SAP, etc.).
Please log in again. The login page will open in a new tab. After logging in you can close it and return to this page.