fakemongo / fongo

faked out in-memory mongo for java
Apache License 2.0
523 stars 156 forks source link

FongoAsync and getMongoClient? #361

Closed p3t closed 6 years ago

p3t commented 6 years ago

Hi, I was just researching if Fongo could fake me a com.mongodb.async.MongoClient and I stumbeld upon the com.github.fakemongo.async.FongoAsync.

Within the java-doc it says:

 * FongoAsync fongo = new FongoAsync("test server");
 * // if you need an instance of com.mongodb.async.MongoClient
 * com.mongodb.async.MongoClient mongo = fongo.getMongoClient();

but the method getMongoClient does not exist and the getMongo method does not returen a async-MongoClient.

I wounder how the FongoAsync is intended to be used?

best regards Peter

p3t commented 6 years ago

Sorry I was confused with the com.mongodb.reactivestreams.client.MongoClient and the com.mongodb.async.client.MongoClient