diff --git a/pom.xml b/pom.xml index 198e424..777d932 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ com.antkorwin spring-test-mongo - 0.9-SNAPSHOT + 0.10-SNAPSHOT jar spring-test-mongo diff --git a/src/main/java/com/antkorwin/springtestmongo/junit5/EnableMongoDbTestContainers.java b/src/main/java/com/antkorwin/springtestmongo/junit5/EnableMongoDbTestContainers.java index 04ea523..4fd06b6 100644 --- a/src/main/java/com/antkorwin/springtestmongo/junit5/EnableMongoDbTestContainers.java +++ b/src/main/java/com/antkorwin/springtestmongo/junit5/EnableMongoDbTestContainers.java @@ -1,13 +1,15 @@ package com.antkorwin.springtestmongo.junit5; -import org.junit.jupiter.api.Tag; -import org.junit.jupiter.api.extension.ExtendWith; - import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.extension.ExtendWith; + +import org.springframework.test.context.ContextConfiguration; + /** * Created on 02.12.2018. * @@ -18,6 +20,7 @@ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.TYPE) @Tag("antkorwin-mongodb-testcontainers") +@ContextConfiguration @ExtendWith(MongoDbTcExtension.class) public @interface EnableMongoDbTestContainers { }