Package org.mongounit.config
Class MongoUnitConfiguration.ApplicationLifecycle
java.lang.Object
org.mongounit.config.MongoUnitConfiguration.ApplicationLifecycle
- All Implemented Interfaces:
org.springframework.context.Lifecycle
- Enclosing class:
MongoUnitConfiguration
@Component
public static class MongoUnitConfiguration.ApplicationLifecycle
extends Object
implements org.springframework.context.Lifecycle
MongoUnitConfiguration.ApplicationLifecycle
class is a Spring component used to optionally drop the database
once all the tests complete execution.-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ApplicationLifecycle
public ApplicationLifecycle()
-
-
Method Details
-
start
public void start()- Specified by:
start
in interfaceorg.springframework.context.Lifecycle
-
stop
public void stop()- Specified by:
stop
in interfaceorg.springframework.context.Lifecycle
-
isRunning
public boolean isRunning()- Specified by:
isRunning
in interfaceorg.springframework.context.Lifecycle
-