60 |
|
public static final Predicate<Integer> pEven = x -> 0 == x % 2; |
61 |
|
public static final Predicate<Integer> pOdd = x -> 1 == x % 2; |
62 |
|
|
63 |
+ |
private static final int SIZE = 100; |
64 |
+ |
|
65 |
|
private static final List<Function<Collection<Integer>, Collection<Integer>>> TEST_SUPPLIERS = Arrays.asList( |
66 |
|
// Collection |
67 |
|
ExtendsAbstractCollection<Integer>::new, |
68 |
+ |
java.util.ArrayDeque<Integer>::new, |
69 |
+ |
java.util.concurrent.ConcurrentLinkedDeque<Integer>::new, |
70 |
+ |
java.util.concurrent.ConcurrentLinkedQueue<Integer>::new, |
71 |
+ |
java.util.concurrent.LinkedBlockingDeque<Integer>::new, |
72 |
+ |
java.util.concurrent.LinkedBlockingQueue<Integer>::new, |
73 |
+ |
java.util.concurrent.LinkedTransferQueue<Integer>::new, |
74 |
+ |
(coll) -> new java.util.concurrent.ArrayBlockingQueue<Integer>( |
75 |
+ |
3 * SIZE, false, coll), |
76 |
|
|
77 |
|
// Lists |
78 |
|
java.util.ArrayList<Integer>::new, |
90 |
|
ExtendsAbstractSet<Integer>::new |
91 |
|
); |
92 |
|
|
83 |
– |
private static final int SIZE = 100; |
84 |
– |
|
93 |
|
@DataProvider(name="setProvider", parallel=true) |
94 |
|
public static Iterator<Object[]> setCases() { |
95 |
|
final List<Object[]> cases = new LinkedList<>(); |