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
Nested ClassesModifier and TypeClassDescriptionstatic classMongoUnitConfiguration.ApplicationLifecycleclass is a Spring component used to optionally drop the database once all the tests complete execution. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription
-
Constructor Details
-
MongoUnitConfiguration
public MongoUnitConfiguration()
-
-
Method Details
-
createDatabaseGuardConfiguration
- Returns:
BeanDefinitionRegistryPostProcessorwhich protects the configured database from being wiped out by the MongoUnit and test method execution.
-