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

A

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

B

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

C

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

D

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

E

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
 
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) - Constructor for class com.github.fakemongo.junit.FongoRule
Setup a rule with a real MongoDB.
FongoRule() - 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, 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
 
getCount() - Method in class com.github.fakemongo.FongoConnection
 
getDatabase(String) - Method in class com.github.fakemongo.Fongo
 
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.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.junit.FongoRule
 
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.FongoRule
 
getMore(MongoNamespace, long, int, Decoder<T>) - Method in class com.github.fakemongo.FongoConnection
 
getPosition() - Method in class org.bson.json.JsonBuffer
 
getServerAddress() - Method in class com.github.fakemongo.Fongo
This will always be localhost:27017
getServerVersion() - Method in class com.github.fakemongo.Fongo
 
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, WriteConcern, List<InsertRequest>) - Method in class com.github.fakemongo.FongoConnection
 
insertCommand(MongoNamespace, boolean, WriteConcern, List<InsertRequest>) - Method in class com.github.fakemongo.FongoConnection
 
insertFile(DBCollection, String) - Method in class com.github.fakemongo.junit.FongoRule
 
insertJSON(DBCollection, String) - Method in class com.github.fakemongo.junit.FongoRule
 
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
 

N

newCollection() - Method in class com.github.fakemongo.junit.FongoRule
 
newCollection(String) - Method in class com.github.fakemongo.junit.FongoRule
 
newMongoCollection(String) - Method in class com.github.fakemongo.junit.FongoRule
 

O

OLD_SERVER_VERSION - Static variable in class com.github.fakemongo.Fongo
 
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
 

R

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.Fongo
 

U

unread(int) - Method in class org.bson.json.JsonBuffer
 
update(MongoNamespace, boolean, WriteConcern, List<UpdateRequest>) - Method in class com.github.fakemongo.FongoConnection
 
updateCommand(MongoNamespace, boolean, WriteConcern, List<UpdateRequest>) - Method in class com.github.fakemongo.FongoConnection
 
A B C D E F G I J K N O P Q R S T U 
Skip navigation links

Copyright © 2015. All rights reserved.