ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/tck/ConcurrentHashMap8Test.java
(Generate patch)

Comparing jsr166/src/test/tck/ConcurrentHashMap8Test.java (file contents):
Revision 1.27 by jsr166, Fri Feb 27 22:15:28 2015 UTC vs.
Revision 1.31 by jsr166, Wed Aug 24 22:22:39 2016 UTC

# Line 11 | Line 11 | import static java.util.Spliterator.NONN
11   import java.util.AbstractMap;
12   import java.util.Arrays;
13   import java.util.Collection;
14 import java.util.Collections;
14   import java.util.Iterator;
15   import java.util.Map;
16   import java.util.NoSuchElementException;
# Line 26 | Line 25 | import junit.framework.TestSuite;
25  
26   public class ConcurrentHashMap8Test extends JSR166TestCase {
27      public static void main(String[] args) {
28 <        junit.textui.TestRunner.run(suite());
28 >        main(suite(), args);
29      }
30      public static Test suite() {
31          return new TestSuite(ConcurrentHashMap8Test.class);
# Line 406 | Line 405 | public class ConcurrentHashMap8Test exte
405          Integer[] elements = new Integer[size];
406          for (int i = 0; i < size; i++)
407              elements[i] = i;
408 <        Collections.shuffle(Arrays.asList(elements));
408 >        shuffle(elements);
409          Collection<Integer> full = populatedSet(elements);
410  
411          Iterator it = full.iterator();
# Line 496 | Line 495 | public class ConcurrentHashMap8Test exte
495          Integer[] elements = new Integer[size];
496          for (int i = 0; i < size; i++)
497              elements[i] = i;
498 <        Collections.shuffle(Arrays.asList(elements));
498 >        shuffle(elements);
499          Collection<Integer> full = populatedSet(elements);
500  
501          assertTrue(Arrays.asList(elements).containsAll(Arrays.asList(full.toArray())));
# Line 516 | Line 515 | public class ConcurrentHashMap8Test exte
515          a = new Integer[0];
516          assertSame(a, empty.toArray(a));
517  
518 <        a = new Integer[size/2];
518 >        a = new Integer[size / 2];
519          Arrays.fill(a, 42);
520          assertSame(a, empty.toArray(a));
521          assertNull(a[0]);
# Line 526 | Line 525 | public class ConcurrentHashMap8Test exte
525          Integer[] elements = new Integer[size];
526          for (int i = 0; i < size; i++)
527              elements[i] = i;
528 <        Collections.shuffle(Arrays.asList(elements));
528 >        shuffle(elements);
529          Collection<Integer> full = populatedSet(elements);
530  
531          Arrays.fill(a, 42);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines