4 import org.specs.mock.Mockito
5 import org.mockito.Mock._
6 import org.mockito.Mockito._
7 import org.mockito.Mockito.doNothing
9 object RedisClientSpec extends Specification with Mockito {
11 "Redis Client" should {
12 var client: Redis = null
14 "print formatted client status" in {
15 client = new Redis("localhost", 121212)
16 client.toString must be matching("localhost:121212 <connected:false>")
19 "get the same connection when passing key para or not since it's a single node" in {
20 client.getConnection("key") mustEqual client.getConnection
23 "use db zero as default" in {