Class MongoUnitConfiguration

java.lang.Object
org.mongounit.config.MongoUnitConfiguration

@Configuration public class MongoUnitConfiguration extends Object
MongoUnitConfiguration is a configuration class that configures database protection post processor.
  • Constructor Details

    • MongoUnitConfiguration

      public MongoUnitConfiguration()
  • Method Details

    • createDatabaseGuardConfiguration

      @Bean public static MongoDatabaseGuardConfiguration createDatabaseGuardConfiguration()
      Returns:
      BeanDefinitionRegistryPostProcessor which protects the configured database from being wiped out by the MongoUnit and test method execution.