Jvm Test Infrastructure

Use when Java or Spring Boot tests need a real database or broker, a Spring context, or time: Testcontainers (a real engine instead of an embedded one, wiring the container with a service connection or a dynamic property, shared and singleton containers, the cleanup container, reuse), Spring Boot test slices versus a full context (@WebMvcTest, @DataJpaTest, @JsonTest, @SpringBootTest), the test context cache and what invalidates it (bean overrides, dynamic properties, @DirtiesContext, forked test processes), polling for an asynchronous result with Awaitility instead of sleeping, and injecting a Clock so tests fix time.

techmefr Updated

File contents

techmefr/mentis commit be410698bd

Frequently asked questions

npx get-skill add techmefr/jvm-test-infrastructure