io.mats3.spring.test.MatsTestProfile Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mats-spring-test Show documentation
Show all versions of mats-spring-test Show documentation
Mats^3 Spring-specific testing tools, for quickly firing up a test-harness using either JUnit or Jupiter (JUnit 5).
The newest version!
package io.mats3.spring.test;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.springframework.test.context.ActiveProfiles;
import io.mats3.spring.jms.factories.MatsProfiles;
import io.mats3.spring.jms.factories.ScenarioConnectionFactoryProducer;
/**
* The only thing this annotation does, is to meta-annotate the test class with
* @ActiveProfiles({@link MatsProfiles#PROFILE_MATS_TEST})
. This is of relevance if you employ the
* {@link ScenarioConnectionFactoryProducer JmsSpringConnectionFactoryProducer}
* "scenario decider" system - the "mats-test" profile per default sends this into "in-vm broker mode".
*
* You may just as well do the direct {@literal @ActiveProfiles}
annotation yourself, but this is a few
* letter shorter, and slightly more concise.
*
* @author Endre Stølsvik 2019-06-17 19:06 - http://stolsvik.com/, [email protected]
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@ActiveProfiles(MatsProfiles.PROFILE_MATS_TEST)
@Documented
public @interface MatsTestProfile {}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy