Class StartLocalMongoDbClassExtension

java.lang.Object
org.sdase.commons.server.mongo.testing.StartLocalMongoDb
org.sdase.commons.server.mongo.testing.StartLocalMongoDbClassExtension
All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterAllCallback, org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.Extension, MongoDb, MongoDbClassExtension

public class StartLocalMongoDbClassExtension extends StartLocalMongoDb implements MongoDbClassExtension
JUnit Test extension for running a MongoDB instance alongside the (integration) tests. This instance starts a local mongo db which is the default behavior of MongoDbClassExtension.
See Also:
  • Method Details

    • beforeAll

      public void beforeAll(org.junit.jupiter.api.extension.ExtensionContext context)
      Specified by:
      beforeAll in interface org.junit.jupiter.api.extension.BeforeAllCallback
    • afterAll

      public void afterAll(org.junit.jupiter.api.extension.ExtensionContext context)
      Specified by:
      afterAll in interface org.junit.jupiter.api.extension.AfterAllCallback