Search in sources :

Example 1 with RedisServer

use of redis.embedded.RedisServer in project nifi by apache.

the class ITRedisStateProvider method setup.

@Before
public void setup() throws Exception {
    final int redisPort = getAvailablePort();
    this.redisServer = new RedisServer(redisPort);
    redisServer.start();
    final Map<PropertyDescriptor, String> properties = new HashMap<>();
    properties.put(RedisUtils.CONNECTION_STRING, "localhost:" + redisPort);
    this.provider = createProvider(properties);
}
Also used : PropertyDescriptor(org.apache.nifi.components.PropertyDescriptor) HashMap(java.util.HashMap) LinkedHashMap(java.util.LinkedHashMap) RedisServer(redis.embedded.RedisServer) Before(org.junit.Before)

Example 2 with RedisServer

use of redis.embedded.RedisServer in project cas by apereo.

the class RedisServiceRegistryTests method startRedis.

@BeforeClass
public static void startRedis() throws Exception {
    REDIS_SERVER = new RedisServer(6380);
    REDIS_SERVER.start();
}
Also used : RedisServer(redis.embedded.RedisServer) BeforeClass(org.junit.BeforeClass)

Example 3 with RedisServer

use of redis.embedded.RedisServer in project tutorials by eugenp.

the class RedissonIntegrationTest method setUp.

@BeforeClass
public static void setUp() throws IOException {
    redisServer = new RedisServer(6379);
    redisServer.start();
    client = Redisson.create();
}
Also used : RedisServer(redis.embedded.RedisServer) BeforeClass(org.junit.BeforeClass)

Example 4 with RedisServer

use of redis.embedded.RedisServer in project tutorials by eugenp.

the class JedisIntegrationTest method setUp.

@BeforeClass
public static void setUp() throws IOException {
    redisServer = new RedisServer(6379);
    redisServer.start();
}
Also used : RedisServer(redis.embedded.RedisServer)

Example 5 with RedisServer

use of redis.embedded.RedisServer in project cas by apereo.

the class RedisTicketRegistryTests method startRedis.

@BeforeClass
public static void startRedis() throws Exception {
    REDIS_SERVER = new RedisServer(6379);
    REDIS_SERVER.start();
}
Also used : RedisServer(redis.embedded.RedisServer) BeforeClass(org.junit.BeforeClass)

Aggregations

RedisServer (redis.embedded.RedisServer)8 BeforeClass (org.junit.BeforeClass)4 Before (org.junit.Before)3 HashMap (java.util.HashMap)1 LinkedHashMap (java.util.LinkedHashMap)1 PropertyDescriptor (org.apache.nifi.components.PropertyDescriptor)1