com.lordofthejars.nosqlunit.mongodb
Class ManagedMongoDb
java.lang.Object
org.junit.rules.ExternalResource
com.lordofthejars.nosqlunit.core.AbstractLifecycleManager
com.lordofthejars.nosqlunit.mongodb.ManagedMongoDb
- All Implemented Interfaces:
- org.junit.rules.TestRule
public class ManagedMongoDb
- extends AbstractLifecycleManager
Run a mongodb server before each test suite.
Methods inherited from class org.junit.rules.ExternalResource |
apply |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOGPATH_ARGUMENT_NAME
protected static final String LOGPATH_ARGUMENT_NAME
- See Also:
- Constant Field Values
FORK_ARGUMENT_NAME
protected static final String FORK_ARGUMENT_NAME
- See Also:
- Constant Field Values
DBPATH_ARGUMENT_NAME
protected static final String DBPATH_ARGUMENT_NAME
- See Also:
- Constant Field Values
PORT_ARGUMENT_NAME
protected static final String PORT_ARGUMENT_NAME
- See Also:
- Constant Field Values
DEFAULT_MONGO_LOGPATH
protected static final String DEFAULT_MONGO_LOGPATH
- See Also:
- Constant Field Values
DEFAULT_MONGO_DBPATH
protected static final String DEFAULT_MONGO_DBPATH
- See Also:
- Constant Field Values
DEFAULT_MONGO_TARGET_PATH
protected static final String DEFAULT_MONGO_TARGET_PATH
MONGODB_BINARY_DIRECTORY
protected static final String MONGODB_BINARY_DIRECTORY
- See Also:
- Constant Field Values
MONGODB_EXECUTABLE_X
protected static final String MONGODB_EXECUTABLE_X
- See Also:
- Constant Field Values
MONGODB_EXECUTABLE_W
protected static final String MONGODB_EXECUTABLE_W
- See Also:
- Constant Field Values
getHost
protected String getHost()
- Specified by:
getHost
in class AbstractLifecycleManager
getPort
protected int getPort()
- Specified by:
getPort
in class AbstractLifecycleManager
doStart
protected void doStart()
throws Throwable
- Specified by:
doStart
in class AbstractLifecycleManager
- Throws:
Throwable
doStop
protected void doStop()
- Specified by:
doStop
in class AbstractLifecycleManager
setCommandLineExecutor
protected void setCommandLineExecutor(CommandLineExecutor commandLineExecutor)
setOperatingSystemResolver
protected void setOperatingSystemResolver(OperatingSystemResolver operatingSystemResolver)
setMongoDbLowLevelOps
protected void setMongoDbLowLevelOps(MongoDbLowLevelOps mongoDbLowLevelOps)
Copyright © 2012. All Rights Reserved.