package com.fiftyonred.mock_jedis;

import org.apache.commons.pool.impl.GenericObjectPool.Config;

import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;

public class MockJedisPool extends JedisPool {
	protected MockJedis client = null;

	public MockJedisPool(Config poolConfig, String host) {
		super(poolConfig, host);
	}
	
	public Jedis getResource() {
        if (client == null) {
        	client = new MockJedis("localhost");
        }
        return client;
    }
	
}

@@ -218,16 +218,13 @@
 %7B%0A%09p
-rotected
+ublic
  Moc

change visibility of Jedis client in the pool