Integration Test Articles
2 articles about Integration Test. Explore Spring Boot implementation, design, and operations across related topics.
-
How to Write Real HTTP E2E Tests in Spring Boot with @SpringBootTest(RANDOM_PORT) and TestRestTemplate
Learn how to actually launch your application with @SpringBootTest(webEnvironment = RANDOM_PORT) and write integration tests that verify status codes, headers, and bodies using TestRestTemplate. Covers the differences from MockMvc, sending requests to authenticated endpoints, and validating error responses, all with working code examples.
-
How to Write Integration Tests with PostgreSQL, Kafka, and Redis Using Spring Boot Testcontainers
A practical guide to writing multi-container integration tests that simultaneously launch PostgreSQL, Kafka, and Redis using Spring Boot 3.1+'s @ServiceConnection, plus speeding up CI with reuse configuration.