GenericContainer class belongs to TestContainers library, which is used to create a container instance, launch and control it during integration testing. All other TestContainers classes, like MySQLContainer, KafkaContainer, etc, extend from this base class. However, it has a bit weird generic class definition itself as you may notice from below code block. This somehow recursive […]
Tag: Integration Tests
EmbeddedRedis Support For Spring Framework
When I was working on one of our microservice projects, I’ve come up with a nice project which help us to run a Redis Server as embedded within our Java integration tests. Actually, by using such a library, it becomes very easy to start and stop a Redis server instance within the test methods. However, […]
Cactus XOR Mocks or Cactus AND Mocks?
We employ both Spring and Hibernate to implement business and data access layers in our current project. Our aim is to bring clear separation between those two layers. Beans in business layer act as service entry points. They simply realize our use case scenarios. They are also good candidates as start and end points for […]