public class RedisDForTestsFactory
extends java.lang.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 java.io.IOException
java.io.IOExceptionpublic RedisDForTestsFactory(de.flapdoodle.embed.process.distribution.IVersion version)
throws java.io.IOException
version - version of MongoDB.java.io.IOExceptionpublic static RedisDForTestsFactory with(de.flapdoodle.embed.process.distribution.IVersion version) throws java.io.IOException
java.io.IOExceptionprotected RedisDConfig newRedisdConfig(de.flapdoodle.embed.process.distribution.IVersion version) throws java.net.UnknownHostException, java.io.IOException
java.net.UnknownHostExceptionjava.io.IOExceptionpublic redis.clients.jedis.Jedis newJedis()
throws java.net.UnknownHostException
java.net.UnknownHostExceptionpublic void shutdown()
Copyright © 2013. All Rights Reserved.