I am able to get Spring Boot integration to generate a random free port to launch itself on. But I also need a free port for Redis. Any ideas on how to achieve this? Answer You can use Spring Framework’s SocketUtils to get an available port:
Tag: integration-testing
DBUnit PostgresqlDataTypeFactory does not recognizes enum list
I’m using DBUnit for an integration test, and before executing the test code I’m running into this error: the column that is ignored is a list of enums. In the dataset it’s written like this : I looked in the DBUnit FAQ and saw this issue , that says that I have to override the isEnumType() method to support my
Maven Failsafe Plugin is always skipping integration tests
I am attempting to configure my Maven project to have unit tests and integration tests. The unit tests are already working fine using the Maven Surefire plugin and are named according to the pattern *Test.java. After adding the Failsafe plugin, like so: I added an integration test named SomeTestIT.java. However, when I run: I get the following: My test class
Embedded MongoDB when running integration tests
My question is a variation of this one. Since my Java Web-app project requires a lot of read filters/queries and interfaces with tools like GridFS, I’m struggling to think of a sensible way to employ MongoDB in the way the above solution suggests. Therefore, I’m considering running an embedded instance of MongoDB alongside my integration tests. I’d like it to