public class RedisDForTestsFactory extends Object
| Constructor and Description |
|---|
RedisDForTestsFactory()
Create the testing utility using the latest production version of
Redis.
|
RedisDForTestsFactory(de.flapdoodle.embed.process.distribution.IVersion version)
Create the testing utility using the specified version of MongoDB.
|
| Modifier and Type | Method and Description |
|---|---|
redis.clients.jedis.Jedis |
newJedis()
Creates a new Redis connection.
|
protected RedisDConfig |
newRedisdConfig(de.flapdoodle.embed.process.distribution.IVersion version) |
void |
shutdown()
Cleans up the resources created by the utility.
|
static RedisDForTestsFactory |
with(de.flapdoodle.embed.process.distribution.IVersion version) |
public RedisDForTestsFactory()
throws IOException
IOExceptionpublic RedisDForTestsFactory(de.flapdoodle.embed.process.distribution.IVersion version)
throws IOException
version - version of MongoDB.IOExceptionpublic static RedisDForTestsFactory with(de.flapdoodle.embed.process.distribution.IVersion version) throws IOException
IOExceptionprotected RedisDConfig newRedisdConfig(de.flapdoodle.embed.process.distribution.IVersion version) throws UnknownHostException, IOException
UnknownHostExceptionIOExceptionpublic redis.clients.jedis.Jedis newJedis()
throws UnknownHostException
UnknownHostExceptionpublic void shutdown()
Copyright © 2015. All Rights Reserved.