io.microsphere.spring.test.redis.EnableRedisTest Maven / Gradle / Ivy
package io.microsphere.spring.test.redis;
import org.springframework.context.annotation.Import;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.StringRedisTemplate;
import redis.embedded.RedisServer;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Enable Redis Test configures the component list:
*
* - {@link RedisTemplate RedisTemplate<Object,Object>}
* - {@link StringRedisTemplate}
* - {@link RedisServer}
*
*
* @author Mercy
* @since 1.0.0
*/
@Target({ElementType.TYPE, ElementType.ANNOTATION_TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
@Import(RedisTestConfiguration.class)
public @interface EnableRedisTest {
}