com.jupiter.tools.spring.test.mongo.junit5.EnableMongoDbTestContainers Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-test-mongo Show documentation
Show all versions of spring-test-mongo Show documentation
Tools suit to write integration tests for MongoDb in Spring Framework.
package com.jupiter.tools.spring.test.mongo.junit5;
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.ActiveProfiles;
/**
* Created on 02.12.2018.
*
* Runs single MongoDb testcontainer before all tests.
*
* @author Korovin Anatoliy
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Tag("antkorwin-mongodb-testcontainers")
@ExtendWith(MongoDbTcExtension.class)
@ActiveProfiles("antkorwin-mongodb-testcontainers")
public @interface EnableMongoDbTestContainers {
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy