com.jupiter.tools.spring.test.postgres.annotation.EnablePostgresTestContainers Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-test-postgres Show documentation
Show all versions of spring-test-postgres Show documentation
JUnit5 utils and extensions to make integration tests for PostgreSQL with Spring
The newest version!
package com.jupiter.tools.spring.test.postgres.annotation;
import com.jupiter.tools.spring.test.jpa.extension.TraceSqlExtension;
import com.jupiter.tools.spring.test.postgres.extension.PostgresTcExtension;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.test.context.ActiveProfiles;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Created on 17.07.2018.
*
* Start a PostgreSQL container in Docker, by a test-containers library.
*
* @author Korovin Anatoliy
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@ExtendWith(PostgresTcExtension.class)
@ExtendWith(TraceSqlExtension.class)
@ActiveProfiles("jupiter-tools.spring-test-postgres.test-containers")
public @interface EnablePostgresTestContainers {
}