Skip navigation links
A B C D E F G I J K M N O P Q R S T U V 

A

after() - Method in class com.github.fakemongo.junit.FongoAsyncRule
 
after() - Method in class com.github.fakemongo.junit.FongoRule
 
awaitResult() - Method in class com.github.fakemongo.AwaitResultSingleResultCallback
 
awaitResult(long, TimeUnit) - Method in class com.github.fakemongo.AwaitResultSingleResultCallback
 
AwaitResultSingleResultCallback<T> - Class in com.github.fakemongo
 
AwaitResultSingleResultCallback() - Constructor for class com.github.fakemongo.AwaitResultSingleResultCallback
 

B

before() - Method in class com.github.fakemongo.junit.FongoAsyncRule
 
before() - Method in class com.github.fakemongo.junit.FongoRule
 

C

com.github.fakemongo - package com.github.fakemongo
 
com.github.fakemongo.async - package com.github.fakemongo.async
 
com.github.fakemongo.junit - package com.github.fakemongo.junit
 
command(String, BsonDocument, boolean, FieldNameValidator, Decoder<T>) - Method in class com.github.fakemongo.FongoConnection
Deprecated.
command(String, BsonDocument, FieldNameValidator, ReadPreference, Decoder<T>, SessionContext) - Method in class com.github.fakemongo.FongoConnection
 
command(String, BsonDocument, FieldNameValidator, ReadPreference, Decoder<T>, SessionContext, boolean, SplittablePayload, FieldNameValidator) - Method in class com.github.fakemongo.FongoConnection
 

D

DEFAULT_SERVER_VERSION - Static variable in class com.github.fakemongo.async.FongoAsync
 
DEFAULT_SERVER_VERSION - Static variable in class com.github.fakemongo.Fongo
 
delete(MongoNamespace, boolean, DeleteRequest) - Method in class com.github.fakemongo.FongoConnection
 
delete(MongoNamespace, boolean, WriteConcern, List<DeleteRequest>) - Method in class com.github.fakemongo.FongoConnection
Deprecated.
deleteCommand(MongoNamespace, boolean, WriteConcern, List<DeleteRequest>) - Method in class com.github.fakemongo.FongoConnection
 
dropDatabase(String) - Method in class com.github.fakemongo.async.FongoAsync
Drop db and all data from memory
dropDatabase(String) - Method in class com.github.fakemongo.Fongo
Drop db and all data from memory

E

execute(AsyncReadOperation<T>, ReadPreference, SingleResultCallback<T>) - Method in class com.github.fakemongo.async.FongoAsync
Execute the read operation with the given read preference.
execute(AsyncReadOperation<T>, ReadPreference, ClientSession, SingleResultCallback<T>) - Method in class com.github.fakemongo.async.FongoAsync
 
execute(AsyncWriteOperation<T>, SingleResultCallback<T>) - Method in class com.github.fakemongo.async.FongoAsync
Execute the write operation.
execute(AsyncWriteOperation<T>, ClientSession, SingleResultCallback<T>) - Method in class com.github.fakemongo.async.FongoAsync
 
execute(ReadOperation<T>, ReadPreference, ClientSession) - Method in class com.github.fakemongo.Fongo
 
execute(WriteOperation<T>, ClientSession) - Method in class com.github.fakemongo.Fongo
 
execute(ReadOperation<T>, ReadPreference) - Method in class com.github.fakemongo.Fongo
 
execute(WriteOperation<T>) - Method in class com.github.fakemongo.Fongo
 

F

Fongo - Class in com.github.fakemongo
Faked out version of com.mongodb.Mongo This class doesn't implement Mongo, but does provide the same basic interface Usage: Fongo fongo = new Fongo("test server"); com.mongodb.DB db = fongo.getDB("mydb"); // if you need an instance of com.mongodb.Mongo com.mongodb.MongoClient mongo = fongo.getMongo();
Fongo(String) - Constructor for class com.github.fakemongo.Fongo
 
Fongo(String, ServerVersion) - Constructor for class com.github.fakemongo.Fongo
 
Fongo(String, ServerVersion, CodecRegistry) - Constructor for class com.github.fakemongo.Fongo
 
FongoAsync - Class in com.github.fakemongo.async
Faked out version of com.mongodb.client.async.Mongo This class doesn't implement Mongo, but does provide the same basic interface Usage: FongoAsync fongo = new FongoAsync("test server"); // if you need an instance of com.mongodb.async.MongoClient com.mongodb.async.MongoClient mongo = fongo.getMongoClient();
FongoAsync(String) - Constructor for class com.github.fakemongo.async.FongoAsync
 
FongoAsync(String, ServerVersion) - Constructor for class com.github.fakemongo.async.FongoAsync
 
FongoAsync(String, ServerVersion, CodecRegistry) - Constructor for class com.github.fakemongo.async.FongoAsync
 
FongoAsyncRule - Class in com.github.fakemongo.junit
Create a Junit Rule to use with annotation @Rule public FongoAsyncRule rule = new FongoAsyncRule().
FongoAsyncRule(String, ServerVersion, boolean, MongoClient) - Constructor for class com.github.fakemongo.junit.FongoAsyncRule
Setup a rule with a real MongoDB.
FongoAsyncRule() - Constructor for class com.github.fakemongo.junit.FongoAsyncRule
 
FongoAsyncRule(ServerVersion) - Constructor for class com.github.fakemongo.junit.FongoAsyncRule
 
FongoAsyncRule(boolean) - Constructor for class com.github.fakemongo.junit.FongoAsyncRule
 
FongoAsyncRule(boolean, ServerVersion) - Constructor for class com.github.fakemongo.junit.FongoAsyncRule
 
FongoAsyncRule(boolean, MongoClient) - Constructor for class com.github.fakemongo.junit.FongoAsyncRule
 
FongoAsyncRule(String, boolean) - Constructor for class com.github.fakemongo.junit.FongoAsyncRule
 
FongoAsyncRule(String) - Constructor for class com.github.fakemongo.junit.FongoAsyncRule
 
FongoConnection - Class in com.github.fakemongo
 
FongoConnection(Fongo) - Constructor for class com.github.fakemongo.FongoConnection
 
FongoException - Exception in com.github.fakemongo
Internal fongo exception
FongoException(String) - Constructor for exception com.github.fakemongo.FongoException
 
FongoException(Integer, String) - Constructor for exception com.github.fakemongo.FongoException
 
FongoRule - Class in com.github.fakemongo.junit
Create a Junit Rule to use with annotation @Rule public FongoRule rule = new FongoRule().
FongoRule(String, ServerVersion, boolean, MongoClient, CodecRegistry) - Constructor for class com.github.fakemongo.junit.FongoRule
Setup a rule with a real MongoDB.
FongoRule(String, ServerVersion, boolean, MongoClient) - Constructor for class com.github.fakemongo.junit.FongoRule
 
FongoRule() - Constructor for class com.github.fakemongo.junit.FongoRule
 
FongoRule(CodecRegistry) - Constructor for class com.github.fakemongo.junit.FongoRule
 
FongoRule(ServerVersion) - Constructor for class com.github.fakemongo.junit.FongoRule
 
FongoRule(boolean) - Constructor for class com.github.fakemongo.junit.FongoRule
 
FongoRule(boolean, CodecRegistry) - Constructor for class com.github.fakemongo.junit.FongoRule
 
FongoRule(boolean, ServerVersion) - Constructor for class com.github.fakemongo.junit.FongoRule
 
FongoRule(boolean, MongoClient) - Constructor for class com.github.fakemongo.junit.FongoRule
 
FongoRule(String, boolean) - Constructor for class com.github.fakemongo.junit.FongoRule
 
FongoRule(String) - Constructor for class com.github.fakemongo.junit.FongoRule
 

G

getCode() - Method in exception com.github.fakemongo.FongoException
 
getCodecRegistry() - Method in class com.github.fakemongo.Fongo
 
getCount() - Method in class com.github.fakemongo.FongoConnection
 
getDatabase(String) - Method in class com.github.fakemongo.async.FongoAsync
equivalent to getDatabase in driver multiple calls to this method return the same MongoDatabase instance
getDatabase(String) - Method in class com.github.fakemongo.Fongo
 
getDatabase(String) - Method in class com.github.fakemongo.junit.FongoAsyncRule
 
getDatabase() - Method in class com.github.fakemongo.junit.FongoAsyncRule
 
getDatabase(String) - Method in class com.github.fakemongo.junit.FongoRule
 
getDatabase() - Method in class com.github.fakemongo.junit.FongoRule
 
getDatabaseNames() - Method in class com.github.fakemongo.async.FongoAsync
Get database names that have been used
getDatabaseNames() - Method in class com.github.fakemongo.Fongo
Get database names that have been used
getDB(String) - Method in class com.github.fakemongo.Fongo
equivalent to getDB in driver multiple calls to this method return the same DB instance
getDb() - Method in class com.github.fakemongo.junit.FongoRule
Deprecated.
getDb(String) - Method in class com.github.fakemongo.junit.FongoRule
Deprecated.
getDB() - Method in class com.github.fakemongo.junit.FongoRule
 
getDB(String) - Method in class com.github.fakemongo.junit.FongoRule
 
getDescription() - Method in class com.github.fakemongo.FongoConnection
 
getFongo() - Method in class com.github.fakemongo.async.FongoAsync
 
getFongo() - Method in class com.github.fakemongo.junit.FongoAsyncRule
 
getFongo() - Method in class com.github.fakemongo.junit.FongoRule
 
getMongo() - Method in class com.github.fakemongo.async.FongoAsync
A mocked out instance of com.mongodb.Mongo All methods calls are intercepted and execute associated Fongo method
getMongo() - Method in class com.github.fakemongo.Fongo
A mocked out instance of com.mongodb.Mongo All methods calls are intercepted and execute associated Fongo method
getMongo() - Method in class com.github.fakemongo.junit.FongoRule
Deprecated.
getMongoClient() - Method in class com.github.fakemongo.junit.FongoAsyncRule
 
getMongoClient() - Method in class com.github.fakemongo.junit.FongoRule
 
getMore(MongoNamespace, long, int, Decoder<T>) - Method in class com.github.fakemongo.FongoConnection
 
getPosition() - Method in class org.bson.json.JsonBuffer
 
getReadConcern() - Method in class com.github.fakemongo.Fongo
 
getServerAddress() - Method in class com.github.fakemongo.async.FongoAsync
This will always be localhost:27017
getServerAddress() - Method in class com.github.fakemongo.Fongo
This will always be localhost:27017
getServerVersion() - Method in class com.github.fakemongo.async.FongoAsync
 
getServerVersion() - Method in class com.github.fakemongo.Fongo
 
getServerVersion() - Method in class com.github.fakemongo.junit.FongoRule
 
getUsedDatabases() - Method in class com.github.fakemongo.Fongo
Get databases that have been used
getWriteConcern() - Method in class com.github.fakemongo.Fongo
 

I

insert(MongoNamespace, boolean, InsertRequest) - Method in class com.github.fakemongo.FongoConnection
 
insert(MongoNamespace, boolean, WriteConcern, List<InsertRequest>) - Method in class com.github.fakemongo.FongoConnection
 
insertCommand(MongoNamespace, boolean, WriteConcern, List<InsertRequest>) - Method in class com.github.fakemongo.FongoConnection
 
insertCommand(MongoNamespace, boolean, WriteConcern, Boolean, List<InsertRequest>) - Method in class com.github.fakemongo.FongoConnection
Insert the documents using the insert command.
insertDocumentsFromFile(String) - Method in class com.github.fakemongo.junit.FongoRule
 
insertDocumentsFromFile(MongoCollection<Document>, String) - Method in class com.github.fakemongo.junit.FongoRule
 
insertFile(DBCollection, String) - Method in class com.github.fakemongo.junit.FongoRule
 
insertJSON(DBCollection, String) - Method in class com.github.fakemongo.junit.FongoRule
 
insertJSON(MongoCollection, String) - Method in class com.github.fakemongo.junit.FongoRule
 
isRealMongo() - Method in class com.github.fakemongo.junit.FongoAsyncRule
 
isRealMongo() - Method in class com.github.fakemongo.junit.FongoRule
 

J

JsonBuffer - Class in org.bson.json
 
JsonBuffer(String) - Constructor for class org.bson.json.JsonBuffer
 

K

killCursor(List<Long>) - Method in class com.github.fakemongo.FongoConnection
 
killCursor(MongoNamespace, List<Long>) - Method in class com.github.fakemongo.FongoConnection
 

M

mustContainsSystemIndexes() - Method in class com.github.fakemongo.junit.FongoRule
 

N

newCollection() - Method in class com.github.fakemongo.junit.FongoRule
 
newCollection(String) - Method in class com.github.fakemongo.junit.FongoRule
 
newFongo(ServerVersion) - Method in class com.github.fakemongo.junit.FongoAsyncRule
 
newFongo(ServerVersion, CodecRegistry) - Method in class com.github.fakemongo.junit.FongoRule
 
newMongoCollection() - Method in class com.github.fakemongo.junit.FongoAsyncRule
 
newMongoCollection(String) - Method in class com.github.fakemongo.junit.FongoAsyncRule
 
newMongoCollection(Class<T>) - Method in class com.github.fakemongo.junit.FongoAsyncRule
 
newMongoCollection(String, Class<T>) - Method in class com.github.fakemongo.junit.FongoAsyncRule
 
newMongoCollection() - Method in class com.github.fakemongo.junit.FongoRule
 
newMongoCollection(String) - Method in class com.github.fakemongo.junit.FongoRule
 
newMongoCollection(Class<T>) - Method in class com.github.fakemongo.junit.FongoRule
 
newMongoCollection(String, Class<T>) - Method in class com.github.fakemongo.junit.FongoRule
 

O

OLD_SERVER_VERSION - Static variable in class com.github.fakemongo.Fongo
 
onResult(T, Throwable) - Method in class com.github.fakemongo.AwaitResultSingleResultCallback
 
org.bson.json - package org.bson.json
 

P

parse(String) - Method in class com.github.fakemongo.junit.FongoRule
 
parseDBObject(String) - Method in class com.github.fakemongo.junit.FongoRule
 
parseList(String) - Method in class com.github.fakemongo.junit.FongoRule
 

Q

query(MongoNamespace, BsonDocument, BsonDocument, int, int, boolean, boolean, boolean, boolean, boolean, boolean, Decoder<T>) - Method in class com.github.fakemongo.FongoConnection
 
query(MongoNamespace, BsonDocument, BsonDocument, int, int, int, boolean, boolean, boolean, boolean, boolean, boolean, Decoder<T>) - Method in class com.github.fakemongo.FongoConnection
 

R

randomName() - Static method in class com.github.fakemongo.junit.FongoRule
 
randomName(String) - Static method in class com.github.fakemongo.junit.FongoRule
 
read() - Method in class org.bson.json.JsonBuffer
 
release() - Method in class com.github.fakemongo.FongoConnection
 
retain() - Method in class com.github.fakemongo.FongoConnection
 

S

setPosition(int) - Method in class org.bson.json.JsonBuffer
 
substring(int) - Method in class org.bson.json.JsonBuffer
 
substring(int, int) - Method in class org.bson.json.JsonBuffer
 

T

toString() - Method in class com.github.fakemongo.async.FongoAsync
 
toString() - Method in class com.github.fakemongo.Fongo
 

U

unread(int) - Method in class org.bson.json.JsonBuffer
 
update(MongoNamespace, boolean, UpdateRequest) - Method in class com.github.fakemongo.FongoConnection
 
update(MongoNamespace, boolean, WriteConcern, List<UpdateRequest>) - Method in class com.github.fakemongo.FongoConnection
Deprecated.
updateCommand(MongoNamespace, boolean, WriteConcern, List<UpdateRequest>) - Method in class com.github.fakemongo.FongoConnection
Update the documents using the update command.
updateCommand(MongoNamespace, boolean, WriteConcern, Boolean, List<UpdateRequest>) - Method in class com.github.fakemongo.FongoConnection
Update the documents using the update command.

V

V3_2_SERVER_VERSION - Static variable in class com.github.fakemongo.Fongo
 
V3_3_SERVER_VERSION - Static variable in class com.github.fakemongo.Fongo
 
V3_6_SERVER_VERSION - Static variable in class com.github.fakemongo.Fongo
 
V3_SERVER_VERSION - Static variable in class com.github.fakemongo.Fongo
 
A B C D E F G I J K M N O P Q R S T U V 
Skip navigation links

Copyright © 2018. All rights reserved.