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 Details

    • ApplicationLifecycle

      public ApplicationLifecycle()
  • Method Details

    • start

      public void start()
      Specified by:
      start in interface org.springframework.context.Lifecycle
    • stop

      public void stop()
      Specified by:
      stop in interface org.springframework.context.Lifecycle
    • isRunning

      public boolean isRunning()
      Specified by:
      isRunning in interface org.springframework.context.Lifecycle