Skip navigation links
A B C D F G I N P R T 

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
 

D

dropDatabase(String) - Method in class com.github.fakemongo.Fongo
Drop db and all data from memory

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
 
FongoException - Exception in com.github.fakemongo
Internal fongo exception
FongoException(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, 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(boolean) - 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

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
 
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
 
getServerAddress() - Method in class com.github.fakemongo.Fongo
This will always be localhost:27017
getUsedDatabases() - Method in class com.github.fakemongo.Fongo
Get databases that have been used
getWriteConcern() - Method in class com.github.fakemongo.Fongo
 

I

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
 

N

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

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
 

R

randomName() - Static method in class com.github.fakemongo.junit.FongoRule
 
randomName(String) - Static method in class com.github.fakemongo.junit.FongoRule
 

T

toString() - Method in class com.github.fakemongo.Fongo
 
A B C D F G I N P R T 
Skip navigation links

Copyright © 2016. All rights reserved.