Class UseExistingMongoDbClassExtension

  • 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 UseExistingMongoDbClassExtension
    extends UseExistingMongoDb
    implements MongoDbClassExtension
    JUnit Test extension for connecting to an existing MongoDB instance alongside the (integration) tests..
    See Also:
    UseExistingMongoDb
    • Constructor Detail

      • UseExistingMongoDbClassExtension

        public UseExistingMongoDbClassExtension​(java.lang.String mongoDbConnectionString)
    • Method Detail

      • 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