test fixed

pull/1705/head
Nikita 7 years ago
parent 4ecae48321
commit 2ad53f9313

@ -725,14 +725,14 @@ public class RedissonListTest extends BaseTest {
list.add(10);
List<Integer> subList = list.subList(3, 7);
assertThat(subList).containsExactly(4, 5, 6, 7);
assertThat(subList.iterator()).containsExactly(4, 5, 6, 7);
subList.clear();
assertThat(list).containsExactly(1, 2, 3, 8, 9, 10);
assertThat(subList.size()).isZero();
List<Integer> subList2 = list.subList(3, 6);
assertThat(subList2).containsExactly(8, 9, 10);
assertThat(subList2.iterator()).containsExactly(8, 9, 10);
}
@Test
@ -802,7 +802,7 @@ public class RedissonListTest extends BaseTest {
list.add(10);
List<Integer> subList = list.subList(3, 7);
assertThat(subList).containsExactly(4, 5, 6, 7);
assertThat(subList.iterator()).containsExactly(4, 5, 6, 7);
for (Iterator<Integer> iterator = subList.iterator(); iterator.hasNext();) {
Integer num = iterator.next();
@ -811,7 +811,7 @@ public class RedissonListTest extends BaseTest {
}
}
assertThat(subList).containsExactly(4, 6, 7);
assertThat(subList.iterator()).containsExactly(4, 6, 7);
ListIterator<Integer> iterator = subList.listIterator();
assertThat(iterator.hasPrevious()).isFalse();
@ -865,16 +865,16 @@ public class RedissonListTest extends BaseTest {
list.add(8);
List<Integer> subList = list.subList(2, 6);
assertThat(subList).containsExactly(3, 4, 5, 6);
assertThat(subList.iterator()).containsExactly(3, 4, 5, 6);
assertThat(subList.size()).isEqualTo(4);
Integer val = subList.remove(2);
assertThat(val).isEqualTo(5);
assertThat(subList).containsExactly(3, 4, 6);
assertThat(subList.iterator()).containsExactly(3, 4, 6);
Integer val1 = subList.remove(2);
assertThat(val1).isEqualTo(6);
assertThat(subList).containsExactly(3, 4);
assertThat(subList.iterator()).containsExactly(3, 4);
}

Loading…
Cancel
Save