This class is named exactly the same and in the same package as the org.mongodb:mongodb-driver one. Aside from the obvious of not knowing which one is used, lints such as nebula's gradle-lint raises righteous hell.
The reason I have both is that I have slow tests that use a real mongodb and fast tests that use Fongo.
https://github.com/fakemongo/fongo/blob/fa0d307455025dc76d40d953350fddd3b71a7021/src/main/java/com/mongodb/util/FongoJSON.java#L162
This class is named exactly the same and in the same package as the org.mongodb:mongodb-driver one. Aside from the obvious of not knowing which one is used, lints such as nebula's gradle-lint raises righteous hell.
The reason I have both is that I have slow tests that use a real mongodb and fast tests that use Fongo.