Sometimes, unit tests with mocked services just aren't enough. We'd like to be able to run repeatable tests against the real thing without fear of corrupting data or affecting others.
With Testcontainers, there is no need for mocks or complicated environment configurations. We can define our target environment in code and then run our tests against ephemeral containers. This tooling has been available to the Java community for some time, but have you realized its capabilities?
We'll enjoy a discussion about unit testing concepts as well as a demonstration of this open-source project created by the folks at AtomicJar, recently acquired by Docker.
Presented Thursday, March 14, 2024 to the St. Louis Java User Group (STL JUG).