Implemented AUTH

This commit is contained in:
Jonathan Leibiusky
2010-08-03 23:47:52 -03:00
parent 2131265436
commit b4862828b0
12 changed files with 50 additions and 186 deletions

View File

@@ -6,30 +6,11 @@ import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import junit.framework.Assert;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisException;
public class HashesCommandsTest extends Assert {
private Jedis jedis;
@Before
public void setUp() throws Exception {
jedis = new Jedis("localhost");
jedis.connect();
}
@After
public void tearDown() throws Exception {
jedis.flushDB();
jedis.disconnect();
}
public class HashesCommandsTest extends JedisCommandTestBase {
@Test
public void hset() throws JedisException {
int status = jedis.hset("foo", "bar", "car");