Fixed broken constructor. Wasn't setting default protocol

This commit is contained in:
Jonathan Leibiusky
2010-08-30 11:12:24 -03:00
parent 366b2a05c2
commit aa7a96d05c
3 changed files with 15 additions and 2 deletions

View File

@@ -22,4 +22,18 @@ public class JedisPoolTest extends Assert {
assertEquals("bar", jedis.get("foo"));
pool.returnResource(jedis);
}
@Test
public void checkConnectionWithDefaultPort() throws TimeoutException {
JedisPool pool = new JedisPool("localhost");
pool.setResourcesNumber(10);
pool.init();
Jedis jedis = pool.getResource(200);
jedis.auth("foobared");
jedis.set("foo", "bar");
assertEquals("bar", jedis.get("foo"));
pool.returnResource(jedis);
}
}

View File

@@ -8,8 +8,6 @@ import java.util.Map;
import org.junit.Test;
import redis.clients.jedis.Protocol;
public class HashesCommandsTest extends JedisCommandTestBase {
@Test
public void hset() {