org.iternine.jeppetto.testsupport.db
Class MongoDatabase
java.lang.Object
org.iternine.jeppetto.testsupport.db.Database
org.iternine.jeppetto.testsupport.db.MongoDatabase
public abstract class MongoDatabase
- extends Database
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MongoDatabase
public MongoDatabase(int port)
forPlatform
public static MongoDatabase forPlatform(int port)
setMongoDbName
public void setMongoDbName(String mongoDbName)
close
public void close()
- Specified by:
close in class Database
onNewIDatabaseConnection
protected void onNewIDatabaseConnection(org.dbunit.database.IDatabaseConnection connection)
- Specified by:
onNewIDatabaseConnection in class Database
getPlatform
protected abstract String getPlatform()
makeExecutable
protected abstract void makeExecutable(File file)
createMongoProcess
protected abstract ProcessBuilder createMongoProcess(File mongod,
File dbpath,
int port)
throws IOException
- Throws:
IOException
initDatabase
protected MongoDatabase initDatabase()
Copyright © 2012. All Rights Reserved.