From 2ad53f9313715d9d2fb7d8f9e0e7f465dcf3abf0 Mon Sep 17 00:00:00 2001 From: Nikita Date: Sat, 6 Oct 2018 12:11:17 +0300 Subject: [PATCH] test fixed --- .../test/java/org/redisson/RedissonListTest.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/redisson/src/test/java/org/redisson/RedissonListTest.java b/redisson/src/test/java/org/redisson/RedissonListTest.java index eb3d6cd58..7c4c08c42 100644 --- a/redisson/src/test/java/org/redisson/RedissonListTest.java +++ b/redisson/src/test/java/org/redisson/RedissonListTest.java @@ -725,14 +725,14 @@ public class RedissonListTest extends BaseTest { list.add(10); List 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 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 subList = list.subList(3, 7); - assertThat(subList).containsExactly(4, 5, 6, 7); + assertThat(subList.iterator()).containsExactly(4, 5, 6, 7); for (Iterator 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 iterator = subList.listIterator(); assertThat(iterator.hasPrevious()).isFalse(); @@ -865,16 +865,16 @@ public class RedissonListTest extends BaseTest { list.add(8); List 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); }