|
|
@ -229,23 +229,6 @@ public class RedissonMapRxTest extends BaseRxTest {
|
|
|
|
Assert.assertEquals(1, sync(map.size()).intValue());
|
|
|
|
Assert.assertEquals(1, sync(map.size()).intValue());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
|
|
|
public void testEquals() {
|
|
|
|
|
|
|
|
RMapRx<String, String> map = redisson.getMap("simple");
|
|
|
|
|
|
|
|
sync(map.put("1", "7"));
|
|
|
|
|
|
|
|
sync(map.put("2", "4"));
|
|
|
|
|
|
|
|
sync(map.put("3", "5"));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Map<String, String> testMap = new HashMap<String, String>();
|
|
|
|
|
|
|
|
testMap.put("1", "7");
|
|
|
|
|
|
|
|
testMap.put("2", "4");
|
|
|
|
|
|
|
|
testMap.put("3", "5");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Assert.assertEquals(map, testMap);
|
|
|
|
|
|
|
|
Assert.assertEquals(map.hashCode(), testMap.hashCode());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
public void testPutAll() {
|
|
|
|
public void testPutAll() {
|
|
|
|
RMapRx<Integer, String> map = redisson.getMap("simple");
|
|
|
|
RMapRx<Integer, String> map = redisson.getMap("simple");
|
|
|
|