com.jupitertools.springtestredis.RedisTestContainer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-test-redis Show documentation
Show all versions of spring-test-redis Show documentation
Tools suite to write integration tests for Spring Applications with the Redis.
The newest version!
package com.jupitertools.springtestredis;
import java.lang.annotation.*;
/**
* Created on 2019-05-23
*
* Start a redis docker container with a Spring Application context
*
* @author Korovin Anatoliy
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Repeatable(RedisTestContainers.class)
public @interface RedisTestContainer {
/**
* @return In this property will be set the value of Redis Host after start a container
*/
String hostTargetProperty() default "spring.redis.host";
/**
* @return In this property will be set the value of Redis Port after start a container
*/
String portTargetProperty() default "spring.redis.port";
}