All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.hilling.junit.cdi.annotations.GlobalTestImplementation Maven / Gradle / Ivy

There is a newer version: 5.0.2
Show newest version
package de.hilling.junit.cdi.annotations;

import jakarta.annotation.Priority;
import jakarta.enterprise.inject.Alternative;
import jakarta.enterprise.inject.Stereotype;

import de.hilling.junit.cdi.scope.TestScoped;
import org.immutables.value.Value;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Use this annotation to mark Alternatives that should globally replace
 * production implementations.
 * 

* These services cannot be disabled or enabled on a per test basis * because the container is only started once. *

*/ @Alternative @TestScoped @Stereotype @Target({ElementType.TYPE, ElementType.FIELD, ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME) @Priority(100) @Value.Immutable public @interface GlobalTestImplementation { }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy