With this guide, we'll investigate the powerful @SpringBootTest annotation for writing Spring Boot integration tests. If you're new to testing the Spring Boot applications, start with the testing
Creating Deep Stubs With Mockito to Chain Method Stubbing
Philip Riecks
Yet another blog post about a Mockito feature that we should rarely use: Mockito deep stubs. With this article, we'll explore how deep stubbing can reduce the boilerplate
Spring Boot Unit and Integration Testing Overview
Philip Riecks
With this blog, you'll get an overview of how unit and integration testing works with Spring Boot. On top of this, you'll learn what Spring features and libraries
Initialization Strategies With Testcontainers For Integration Tests
Philip Riecks
Testcontainers offers several initialization strategies for our Docker containers when writing integration tests. Depending on the Docker image we use for our tests, we might have to perform
OIDC Logout With AWS Cognito and Spring Security
Philip Riecks
With one of the previous blog posts, we configured a Thymeleaf Spring Boot application for an OAuth 2 Login with Spring Security and AWS Cognito. While this article
Java AWS Lambda Container Image Support (Complete Guide)
Philip Riecks
My original plan was to demo the container image support of AWS Lambda with a Java example that uses Selenium to scrape web pages. For Python and Node.js,
Record Spring Events When Testing Spring Boot Applications
Philip Riecks
One of the core features of Spring is the event publishing functionality. We can use events to decouple parts of our application and implement a publish-subscribe pattern. One
Testing Spring Boot Applications With REST Assured
Philip Riecks
REST Assured is a Java DSL (Domain Specific Langauge) that aims to simplify testing REST APIs. It follows a BDD (Behavior Driven Development) approach and is influenced by
Mock Java Constructors With Mockito | Configuration and Examples
Philip Riecks
Starting with Mockito version 3.5.0, we can now mock Java constructors with Mockito. This allows us to return a mock from every object construction for testing purposes. Similar
Lock @Scheduled Tasks With ShedLock and Spring Boot
Philip Riecks
As soon as you scale out your Spring Boot application (run with multiple instances) to e.g. increase throughput or availability, you have to ensure your application is ready