|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.iternine.jeppetto.testsupport.MongoDatabaseProvider
public class MongoDatabaseProvider
| Constructor Summary | |
|---|---|
MongoDatabaseProvider()
Construct a default MongoDatabaseProvider that will uniquify mongodb database names. |
|
MongoDatabaseProvider(boolean uniquifyName)
Uses the default mongodb port properties (either "mongodb.left.port" or "mongodb.port"). |
|
MongoDatabaseProvider(String mongoPortProperty,
String mongoDbNameProperty,
boolean uniquifyName)
|
|
| Method Summary | |
|---|---|
void |
close()
|
Database |
getDatabase(Properties properties,
org.springframework.context.ApplicationContext applicationContext)
Create and initialize the database. |
Properties |
modifyProperties(Properties properties)
Optionally make any property modifications before refreshing the application context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MongoDatabaseProvider()
public MongoDatabaseProvider(boolean uniquifyName)
uniquifyName - true if the mongodb database name should be modified to avoid collisions with concurrent tests
public MongoDatabaseProvider(String mongoPortProperty,
String mongoDbNameProperty,
boolean uniquifyName)
mongoPortProperty - name of the property that specifies the mongodb portmongoDbNameProperty - name of the property that specifies the mongodb database nameuniquifyName - true if the mongodb database name should be modified to avoid collisions with concurrent tests| Method Detail |
|---|
public Properties modifyProperties(Properties properties)
DatabaseProvider
modifyProperties in interface DatabaseProviderproperties - properties
public Database getDatabase(Properties properties,
org.springframework.context.ApplicationContext applicationContext)
DatabaseProvider
getDatabase in interface DatabaseProviderproperties - app propertiesapplicationContext - app context
public void close()
throws IOException
close in interface CloseableIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||