|
|
@ -403,6 +403,23 @@ public class RedissonMapCacheTest extends BaseMapTest {
|
|
|
|
assertThat(map.values()).containsOnly("5678");
|
|
|
|
assertThat(map.values()).containsOnly("5678");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
|
|
|
public void testGetAllBig() {
|
|
|
|
|
|
|
|
Map<Integer, String> joinMap = new HashMap<Integer, String>();
|
|
|
|
|
|
|
|
for (int i = 0; i < 10000; i++) {
|
|
|
|
|
|
|
|
joinMap.put(i, "" + i);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
RMap<Integer, String> map = redisson.getMapCache("simple");
|
|
|
|
|
|
|
|
map.putAll(joinMap);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Map<Integer, String> s = map.getAll(joinMap.keySet());
|
|
|
|
|
|
|
|
assertThat(s).isEqualTo(joinMap);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assertThat(map.size()).isEqualTo(joinMap.size());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
public void testGetAll() throws InterruptedException {
|
|
|
|
public void testGetAll() throws InterruptedException {
|
|
|
|
RMapCache<Integer, Integer> map = redisson.getMapCache("getAll");
|
|
|
|
RMapCache<Integer, Integer> map = redisson.getMapCache("getAll");
|
|
|
|