TestContainers is a great tool if you want to run integration tests and require a database. They even have support for MongoDB. This MongoDB support works for simple use cases. But what if you want to run MongoDB with username and password? Unfortunately,…
Tag: <span>spring boot</span>
I am working on a project, which has some issues with tests. Basically, they all run quite slow and I was curious, how can I improve the performance of these tests? Well, one improvement is simple – run tests in parallel. Of course,…
I have encountered the following problem: Nasty thing. It says, that HikariCP can not acquire a new database connection and it gave up after some 30 seconds. Where is the problem? Let’s try to simulate the problem. We want to query database and…
I’m helping to write a Java library (JAR file) which result is just one @Configuration file that integrates Redis. But the problem became – how to test it? It turned out, that it’s not so easy to figure out which dependencies to use…