summaryrefslogtreecommitdiff
path: root/src/test/java/au/id
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/au/id')
-rw-r--r--src/test/java/au/id/zancanaro/javacheck/SimpleListOperationsTest.java12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/test/java/au/id/zancanaro/javacheck/SimpleListOperationsTest.java b/src/test/java/au/id/zancanaro/javacheck/SimpleListOperationsTest.java
index 8f7b075..70b2425 100644
--- a/src/test/java/au/id/zancanaro/javacheck/SimpleListOperationsTest.java
+++ b/src/test/java/au/id/zancanaro/javacheck/SimpleListOperationsTest.java
@@ -10,6 +10,8 @@ import java.util.Collections;
import java.util.List;
import static au.id.zancanaro.javacheck.Generators.*;
+import static java.util.Collections.reverse;
+import static java.util.Collections.sort;
import static org.junit.Assert.assertEquals;
@RunWith(Properties.class)
@@ -27,11 +29,11 @@ public class SimpleListOperationsTest {
@Property(maxSize = maxSize, runs = runs)
public void sortingIsIdempotent(List<Integer> list) {
List<Integer> left = new ArrayList<>(list);
- Collections.sort(left);
+ sort(left);
List<Integer> right = new ArrayList<>(list);
- Collections.sort(right);
- Collections.sort(right);
+ sort(right);
+ sort(right);
assertEquals(left, right);
}
@@ -39,8 +41,8 @@ public class SimpleListOperationsTest {
@Property(maxSize = 100, runs = runs)
public void reverseIsItsOwnInverse(List<String> list) {
List<String> reversed = new ArrayList<>(list);
- Collections.reverse(reversed);
- Collections.reverse(reversed);
+ reverse(reversed);
+ reverse(reversed);
assertEquals(list, reversed);
}