Enrich Your Spring Applications by Leveraging Python Functionality with GraalVM

We already know that GraalVM compiles your Java applications ahead of time into standalone binaries that start instantly, provide peak performance with no warmup, and use fewer resources. GraalVM also supports polyglot programming where you can use multiple language features in single project. Polyglot programming refers to the practice of using multiple programming languages within…

Exploring the AssertJ Integration and New MockMvcTester Class in Spring Boot 3.4

Spring Boot 3.4 introduces AssertJ integration for tests and an exciting new class—MockMvcTester—designed to simplify and enhance testing of web controllers. The AssertJ integration builds on top of plain MockMvc with several differences: It offers a modern, fluent API for asserting HTTP responses, making it easier to write clean and readable tests. In this blog post, we…

Customizing Spring Initializr Defaults: Building a Chrome Extension for start.spring.io

Spring Initializr (start.spring.io) is a fantastic tool for bootstrapping Spring Boot projects. However, you might find yourself repeatedly changing the same default values every time you create a new project. In this guide, we’ll create a Chrome extension that let’s you save default preferences and apply them with single click What We’ll Build Our extension…

Mastering Mockito: Using doAnswer for Complex Mocking Scenarios

In unit testing, sometimes we need more control over the behavior of mocked methods than simple return values. Imagine you have a method that takes a Consumer as an argument and performs a series of actions on it. How do you verify its behavior or simulate different responses for it in a controlled test environment? This is…