From the Fongo Documentation :
It has a “provided” dependency on the mongo-java driver and has been tested with 2.13.0 and 3.0.1.
So, Fongo wants mongo-java-driveron the way to classes, and I guess you don't have one (or at least not in scope test).
So make sure your build script says the following:
For Maven:
<dependency>
<groupId>org.mongodb</groupId>
<artifactId>mongo-java-driver</artifactId>
<version>3.4.1</version>
<scope>test</scope>
</dependency>
For Gradle:
testCompile 'org.mongodb:mongo-java-driver:3.4.1'
Hanno source
share