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

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

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

import jakarta.enterprise.inject.Stereotype;

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

import org.immutables.value.Value;

import de.hilling.junit.cdi.scope.TestScoped;

/**
 * Use this annotation to mark Alternatives that can be enabled per test class.
 */
@TestScoped
@Stereotype
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Value.Immutable
public @interface ActivatableTestImplementation {
    /**
     * Enumerates the classes and/or interfaces that should be replaced by the injected bean.
     * @return activatable beans.
     */
    Class[] value() default {};
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy