Code example for ArrayList

Methods: add

0
    } 
 
    @Test 
    public void mget() { 
        List<String> values = jedis.mget("foo", "bar");
        List<String> expected = new ArrayList<String>();
        expected.add(null);
        expected.add(null);
 
        assertEquals(expected, values);
 
        jedis.set("foo", "bar"); 
 
        expected = new ArrayList<String>();
        expected.add("bar");
        expected.add(null);
        values = jedis.mget("foo", "bar");
 
        assertEquals(expected, values);
 
        jedis.set("bar", "foo");