Write effective tests for your application code utilizing the Spring RestTemplate by using the @RestClientTest annotation of Spring Boot| rieckpil
Learn how to expose metrics of your HTTP client using Spring WebClient: e.g. request URI, response codes, duration of request...| rieckpil
Concise roundup of unit and integration testing with Spring Boot. Learn the fundaments of your Spring Boot testing journey.| rieckpil
Discover five JUnit 5 features: test execution order, nested tests, parallelizing tests, parameter injection, conditional test execution| rieckpil
Write integration tests for your Spring Boot application using Kotlin and Testcontainers and understand the differences between Java tests| rieckpil
Learn how to write functional tests for your Spring Boot application with Selenium using Testcontainers and a Remote Chrome WebDriver| rieckpil
Reuse Docker containers with Testcontainers to save initial setup time for Testcontainers to start and accerlate your build times| rieckpil
Learn about several initialization strategies for Testcontainers when writing integration tests: executing commands, mounting files, etc.| rieckpil
Spring Boot JUnit 5 integration test setup (WireMockExtension & manuel setup) with WireMock to stub HTTP responses of external systems.| rieckpil
Comprehensive online course for learning one of the most essential Java testing libraries: Mockito for mocking Java objects during tests.| rieckpil
Showcasing three must-use Maven plugins to ensure quality and security for Java projects: SpotBugs, Maven Enforcer, OWASP Dependency Check.| rieckpil
Fix the Sonatype OSS Index 401 Unauthorized error in OWASP Dependency-Check Maven Plugin. Guide to configure authentication and NVD API keys.| rieckpil
Guides, thorough explanations, and best practices on testing Spring Boot applications. Helping developers incorporate testing as a routine rather than a frustrated afterthought.| rieckpil
Guides, thorough explanations, and best practices on testing Spring Boot applications. Helping developers incorporate testing as a routine rather than a frustrated afterthought.| rieckpil
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
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
Write tests for your Spring WebClient usage with OkHttp's MockWebServer and mock HTTP responses to test different scenarios| 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
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