diff --git a/spring-infrastructure/pom.xml b/spring-infrastructure/pom.xml index 3003c2a7..0014f30c 100644 --- a/spring-infrastructure/pom.xml +++ b/spring-infrastructure/pom.xml @@ -27,6 +27,12 @@ spring-context ${spring.version} + + org.springframework + spring-test + ${spring.version} + compile + com.pkb.pkbcommon infrastructure @@ -45,6 +51,7 @@ org.junit.jupiter junit-jupiter-api + compile org.junit.jupiter diff --git a/spring-infrastructure/src/main/java/com/pkb/common/testing/IntegrationTest.java b/spring-infrastructure/src/main/java/com/pkb/common/testing/IntegrationTest.java new file mode 100644 index 00000000..5d33ddae --- /dev/null +++ b/spring-infrastructure/src/main/java/com/pkb/common/testing/IntegrationTest.java @@ -0,0 +1,15 @@ +package com.pkb.common.testing; + +import org.junit.jupiter.api.Tag; +import org.springframework.test.context.ActiveProfiles; + +import java.lang.annotation.*; + +@Target({ElementType.TYPE, ElementType.METHOD}) +@Retention(RetentionPolicy.RUNTIME) +@Inherited +@ActiveProfiles("integration-test") +@Documented +@Tag("integration-test") +public @interface IntegrationTest { +}