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

Comparing jsr166/src/test/tck/ThreadLocalRandomTest.java (file contents):
Revision 1.8 by jsr166, Tue Mar 15 19:47:07 2011 UTC vs.
Revision 1.10 by jsr166, Tue May 31 16:16:24 2011 UTC

# Line 4 | Line 4
4   * http://creativecommons.org/publicdomain/zero/1.0/
5   */
6   import junit.framework.*;
7 import java.util.concurrent.*;
7   import java.util.*;
8 <
8 > import java.util.concurrent.ThreadLocalRandom;
9  
10   public class ThreadLocalRandomTest extends JSR166TestCase {
11  
# Line 67 | Line 66 | public class ThreadLocalRandomTest exten
66          assertTrue(i < NCALLS);
67      }
68  
70
69      /**
70       * Repeated calls to nextBoolean produce at least one different result
71       */
# Line 112 | Line 110 | public class ThreadLocalRandomTest exten
110          assertTrue(i < NCALLS);
111      }
112  
115
113      /**
114       * nextInt(negative) throws IllegalArgumentException;
115       */
# Line 133 | Line 130 | public class ThreadLocalRandomTest exten
130          } catch (IllegalArgumentException success) {}
131      }
132  
136
133      /**
134       * nextInt(bound) returns 0 <= value < bound;
135       * repeated calls produce at least one different result
# Line 154 | Line 150 | public class ThreadLocalRandomTest exten
150          }
151      }
152  
157
153      /**
154       * nextInt(least, bound) returns least <= value < bound;
155       * repeated calls produce at least one different result
# Line 236 | Line 231 | public class ThreadLocalRandomTest exten
231          }
232      }
233  
239
234      /**
235       * nextDouble(least, bound) returns least <= value < bound;
236       * repeated calls produce at least one different result
# Line 258 | Line 252 | public class ThreadLocalRandomTest exten
252          }
253      }
254  
261
255   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines