Skip to content

Commit 2e2c894

Browse files
committed
add ContextConfiguration
1 parent cc6b675 commit 2e2c894

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>com.antkorwin</groupId>
77
<artifactId>spring-test-mongo</artifactId>
8-
<version>0.9-SNAPSHOT</version>
8+
<version>0.10-SNAPSHOT</version>
99
<packaging>jar</packaging>
1010

1111
<name>spring-test-mongo</name>
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
package com.antkorwin.springtestmongo.junit5;
22

3-
import org.junit.jupiter.api.Tag;
4-
import org.junit.jupiter.api.extension.ExtendWith;
5-
63
import java.lang.annotation.ElementType;
74
import java.lang.annotation.Retention;
85
import java.lang.annotation.RetentionPolicy;
96
import java.lang.annotation.Target;
107

8+
import org.junit.jupiter.api.Tag;
9+
import org.junit.jupiter.api.extension.ExtendWith;
10+
11+
import org.springframework.test.context.ContextConfiguration;
12+
1113
/**
1214
* Created on 02.12.2018.
1315
*
@@ -18,6 +20,7 @@
1820
@Retention(RetentionPolicy.RUNTIME)
1921
@Target(ElementType.TYPE)
2022
@Tag("antkorwin-mongodb-testcontainers")
23+
@ContextConfiguration
2124
@ExtendWith(MongoDbTcExtension.class)
2225
public @interface EnableMongoDbTestContainers {
2326
}

0 commit comments

Comments
 (0)