refactoring

pull/1827/head
Nikita Koksharov 6 years ago
parent fed5b714ff
commit ce25cbc6b7

@ -17,16 +17,6 @@ import reactor.rx.Promise;
public class RedissonListRxTest extends BaseRxTest { public class RedissonListRxTest extends BaseRxTest {
@Test
public void testHashCode() throws InterruptedException {
RListRx<String> list = redisson.getList("list");
sync(list.add("a"));
sync(list.add("b"));
sync(list.add("c"));
Assert.assertEquals(126145, list.hashCode());
}
@Test @Test
public void testAddByIndex() { public void testAddByIndex() {
RListRx<String> test2 = redisson.getList("test2"); RListRx<String> test2 = redisson.getList("test2");

@ -409,20 +409,4 @@ public class RedissonMapCacheRxTest extends BaseRxTest {
Assert.assertEquals(0, values.size()); Assert.assertEquals(0, values.size());
} }
@Test
public void testEquals() {
RMapCacheRx<String, String> map = redisson.getMapCache("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(testMap.hashCode(), map.hashCode());
}
} }

@ -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");

Loading…
Cancel
Save