Search in sources :

Example 6 with RedisServer

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

the class ITRedisDistributedMapCacheClientService method setup.

@Before
public void setup() throws IOException {
    this.redisPort = getAvailablePort();
    this.redisServer = new RedisServer(redisPort);
    redisServer.start();
    proc = new TestRedisProcessor();
    testRunner = TestRunners.newTestRunner(proc);
}
Also used : RedisServer(redis.embedded.RedisServer) Before(org.junit.Before)

Example 7 with RedisServer

use of redis.embedded.RedisServer in project Stores by Discord4J.

the class IntegrationTests method setUp.

@Before
public void setUp() throws IOException {
    redisServer = new RedisServer(32768);
    redisServer.start();
    Runtime.getRuntime().addShutdownHook(new Thread(() -> redisServer.stop()));
    service = new LettuceStoreService();
}
Also used : RedisServer(redis.embedded.RedisServer) Before(org.junit.Before)

Example 8 with RedisServer

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

the class RedissonConfigurationIntegrationTest method setUp.

@BeforeClass
public static void setUp() throws IOException {
    redisServer = new RedisServer(6379);
    redisServer.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