spring-react-kubernetes-api/src/test/java/tk/antoine/roux/SpringBootTestWithProfile.java

22 lines
618 B
Java

package tk.antoine.roux;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.core.annotation.AliasFor;
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;
@SpringBootTest
@ActiveProfiles
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface SpringBootTestWithProfile {
@AliasFor(annotation = ActiveProfiles.class, attribute = "profiles")
String[] activeProfiles() default {};
}