Package org.mongounit.config
Class MongoUnitConfiguration
java.lang.Object
org.mongounit.config.MongoUnitConfiguration
MongoUnitConfiguration
is a configuration class that configures database protection post
processor.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
MongoUnitConfiguration.ApplicationLifecycle
class is a Spring component used to optionally drop the database once all the tests complete execution. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription
-
Constructor Details
-
MongoUnitConfiguration
public MongoUnitConfiguration()
-
-
Method Details
-
createDatabaseGuardConfiguration
- Returns:
BeanDefinitionRegistryPostProcessor
which protects the configured database from being wiped out by the MongoUnit and test method execution.
-