Can't use log4j-slf4j-impl in the tests because it causes a recursive
call to Log4j since the MongoDB version 3 (as opposed to 2) uses SLF4J
for its own logging.
<artifactId>log4j-core</artifactId>
<type>test-jar</type>
</dependency>
- <dependency>
- <groupId>org.apache.logging.log4j</groupId>
- <artifactId>log4j-slf4j-impl</artifactId>
- <scope>test</scope>
- </dependency>
<dependency>
<groupId>de.flapdoodle.embed</groupId>
<artifactId>de.flapdoodle.embed.mongo</artifactId>
