ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/jtreg/util/Collection/CollectionDefaults.java
(Generate patch)

Comparing jsr166/src/test/jtreg/util/Collection/CollectionDefaults.java (file contents):
Revision 1.1 by jsr166, Wed May 20 05:47:50 2015 UTC vs.
Revision 1.2 by jsr166, Sun Oct 9 05:22:01 2016 UTC

# Line 60 | Line 60 | public class CollectionDefaults {
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,
# Line 80 | Line 90 | public class CollectionDefaults {
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<>();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines