Optimize your Spring Boot test suite performance using the Spring Test Profiler to achieve faster build times and improve developer productivity.| rieckpil
Master Spring Boot logging for testing: logback-test.xml configuration, SQL performance analysis, and TestContainers debugging integration.| rieckpil
Learn how Spring Boot parent POM manages test dependencies, override versions with Maven properties, and ensure proper test scoping.| rieckpil
Tutorial about the Jakarta RESTful Web Services (JAX-RS) specification (also part of Eclipse MicroProfile) to create REST applications| rieckpil
Learn how to use the WebTestClient from Spring for efficient testing of your application's REST API during integration tests| rieckpil
Tutorial for the Spring Security OAuth2 integration with the Spring WebClient to enable OAuth2 login for a WebFlux (reactive) application| rieckpil
Tutorial for the Spring Security OAuth2 integration with the Spring WebClient to enable OAuth2 login for a Spring Web (Servlet) application| rieckpil
Understand the differences between the methods exchange and retrieve when using the Spring Webflux WebClient to make HTTP requests.| rieckpil
Learn how to effectively use Eclipse MicroProfile Rest Client for RESTful communication of your Java EE or Jakarta EE applications| rieckpil
Introduction of the WebClientCustomizer functional interface to globally customize Spring WebClient instances using Spring Boot| rieckpil
Use Spring Boot's @JsonTest annotation to focus on testing your JSON serialization for using either Jackson, Gson or Jsonb| rieckpil
Write tests for your Spring WebClient usage with OkHttp's MockWebServer and mock HTTP responses to test different scenarios| rieckpil
Learn how to write functional tests for your Spring Boot application with Selenium using Testcontainers and a Remote Chrome WebDriver| rieckpil
Concise roundup of unit and integration testing with Spring Boot. Learn the fundaments of your Spring Boot testing journey.| rieckpil
Learn about several approaches to override your Spring Boot configuration properties (@Value) when writing tests for your application.| rieckpil
Understand how the Context Caching mechanism from Spring Test can improve your build time while resuing an already started context| rieckpil
Learn how to write efficient integration tests for Spring Boot applications with Testcontainers using either JUnit 4 or JUnit 5| rieckpil
Introduction guide for the Spring Boot testing swiss-army knife and its transitive dependencies: the Spring Boot Starter Test| rieckpil
Reasons and solutions for no qualifying Spring Bean errors when writing tests for Spring Boot applications that include a Spring Test Context| rieckpil
Understand the difference between @Mock from Mockito and @MockBean from Spring when testing Spring Boot applications with JUnit 4 or JUnit 5.| rieckpil
Testing web applications effectively requires more than just verifying HTTP responses. While MockMvc excels at testing Spring Boot controllers and REST endpoints, it falls short when we need to test JavaScript interactions, form submissions with client-side validation, or complex user workflows in our Thymeleaf templates. This is where HtmlUnit shines as a powerful testing tool. […] The post Thymeleaf View Testing with Spring Boot and HtmlUnit appeared first on rieckpil.| rieckpil
Learn how to write and test Java-based Flyway migrations in Spring Boot with practical examples and testing strategies.| rieckpil
When working with recent versions of Java (21+) and Mockito, many developers encounter a puzzling warning message during test execution: [crayon-68491f0366fce025566749/] This warning appears when Mockito attempts to dynamically load its inline mock maker, a mechanism that enables advanced mocking capabilities. Understanding this warning and addressing it properly ensures our Spring Boot test suites remain […] The post How to Configure Mockito Agent for Java 21+ Without Warning appeared firs...| rieckpil
In the Java ecosystem, managing dependencies effectively is crucial for building stable and maintainable applications. One particularly challenging aspect of dependency management is ensuring dependency convergence – a concept that many developers overlook until they encounter mysterious runtime errors. This article explores what dependency convergence is, why it matters, and how we can effectively manage […] The post Avoid Runtime Errors with Maven Dependency Convergence appeared first o...| rieckpil
Discover essential Spring Boot testing insights including built-in test libraries, context management strategies, test slicing and more.| rieckpil
Testing is a critical aspect of any Spring Boot application, but as our projects grow, so does the time required to run our test suites. One of the most powerful yet often overlooked features for improving test performance is Spring’s TestContext caching mechanism. In this article, we’ll explore best practices for managing the context cache […] The post Spring Boot TestContext Cache Best Practices appeared first on rieckpil.| rieckpil
Learn how to create custom JUnit Jupiter (Junit 5) extensions to enhance your testing workflow with a practical Selenium screenshot example.| rieckpil
Spring Boot has revolutionized how we build Java applications, making it easier than ever to get up and running with robust, production-ready systems. But as with any popular technology, a set of myths and misconceptions has grown around Spring Boot’s testing capabilities. These myths can lead to slow tests, brittle code, and missed opportunities for […] The post Top 5 Spring Boot Testing Myths appeared first on rieckpil.| rieckpil
Learn effective techniques to test Spring MVC Filters using @WebMvcTest in Spring Boot applications, with practical examples.| rieckpil
Learn how to effectively use and configure the Spring 5 WebClient (WebFlux) from different examples: interceptors headers, retries, timeouts| rieckpil
Overview of the annotations for different Spring Boot Test Slices like @SpringBootTest, @WebMvcTest, etc. and examples on how to use them| rieckpil
Testing Spring Boot applications using MockMvc: verify @RestController endpoints, Thymeleaf controller endpoints, Spring Security, etc.| rieckpil
Understand when, why and how to use the @SpringBootTest annotation to write integration tests for your Spring Boot application.| rieckpil
When writing tests for Spring Boot applications, understanding transaction management is crucial for maintaining test isolation. One common pitfall that confuses many developers is the difference in rollback behavior between various testing approaches. This article explores how transaction contexts work in Spring Boot tests, particularly focusing on the differences between slice tests like @WebMvcTest and […] The post Spring Boot Testing Pitfall: Transaction Rollback in Tests appeared first...| rieckpil
Understand the key differences between SpringRunner, SpringExtension, and @SpringBootTest annotations for your Spring Boot test environment.| rieckpil
Testing controllers in Spring Boot can feel like a balancing act. You want fast, focused tests that catch real-world issues—without slowing down your suite or missing critical behavior. Too often, developers fall into one of two traps: writing plain unit tests with Mockito and JUnit, or reaching for the full-blown @SpringBootTest. Both miss the mark. […] The post How to Test Spring Boot Web Controller the Right Way appeared first on rieckpil.| rieckpil
Discover how Spring Test context caching accelerates your test suite, reduces build times, and simplifies developer workflows.| rieckpil
Master unit, integration and end-to-end testing Spring Boot application using JUnit, Mockito, Testcontainers, LocalStack, Selenium, etc.| rieckpil
Comparison of MockMvc, WebTestClient, and the TestRestTemplate for invoking and testing Spring Web MVC controller endpoints.| rieckpil
Collection of pitfalls, tips & tricks, and workarounds for Java development on an Apple M1 processor (ARM64): Testcontainers, Docker, Testing| rieckpil