public abstract class AbstractSimpleBackendTest
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected com.mongodb.Mongo |
client |
protected com.mongodb.DBCollection |
collection |
protected com.mongodb.DB |
db |
| Constructor and Description |
|---|
AbstractSimpleBackendTest() |
| Modifier and Type | Method and Description |
|---|---|
protected com.mongodb.CommandResult |
command(java.lang.String command) |
protected abstract de.bwaldvogel.mongo.MongoBackend |
createBackend() |
protected com.mongodb.DB |
getAdminDb() |
protected com.mongodb.DBCollection |
getCollection(java.lang.String collectionName) |
protected com.mongodb.BasicDBObject |
json(java.lang.String string) |
void |
setUp() |
protected void |
shutdownServer() |
protected void |
spinUpServer() |
void |
tearDown() |
void |
testSimpleInsert() |
void |
testSimpleInsertDelete() |
protected com.mongodb.Mongo client
protected com.mongodb.DB db
protected com.mongodb.DBCollection collection
protected com.mongodb.CommandResult command(java.lang.String command)
protected com.mongodb.DBCollection getCollection(java.lang.String collectionName)
protected com.mongodb.BasicDBObject json(java.lang.String string)
protected com.mongodb.DB getAdminDb()
protected abstract de.bwaldvogel.mongo.MongoBackend createBackend()
throws java.lang.Exception
java.lang.Exceptionpublic void setUp()
throws java.lang.Exception
java.lang.Exceptionpublic void tearDown()
protected void spinUpServer()
throws java.lang.Exception
java.lang.Exceptionprotected void shutdownServer()
public void testSimpleInsert()
throws java.lang.Exception
java.lang.Exceptionpublic void testSimpleInsertDelete()
throws java.lang.Exception
java.lang.Exception