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.5 by jsr166, Sat Nov 21 21:02:14 2009 UTC vs.
Revision 1.6 by jsr166, Tue Dec 1 06:47:14 2009 UTC

# Line 118 | Line 118 | public class ThreadLocalRandomTest exten
118       */
119      public void testNextIntBoundedNeg() {
120          try {
121 <            int  f = ThreadLocalRandom.current().nextInt(-17);
121 >            int f = ThreadLocalRandom.current().nextInt(-17);
122              shouldThrow();
123          } catch (IllegalArgumentException success) {}
124      }
# Line 128 | Line 128 | public class ThreadLocalRandomTest exten
128       */
129      public void testNextIntBadBounds() {
130          try {
131 <            int  f = ThreadLocalRandom.current().nextInt(17, 2);
131 >            int f = ThreadLocalRandom.current().nextInt(17, 2);
132              shouldThrow();
133          } catch (IllegalArgumentException success) {}
134      }
# Line 181 | Line 181 | public class ThreadLocalRandomTest exten
181       */
182      public void testNextLongBoundedNeg() {
183          try {
184 <            long  f = ThreadLocalRandom.current().nextLong(-17);
184 >            long f = ThreadLocalRandom.current().nextLong(-17);
185              shouldThrow();
186          } catch (IllegalArgumentException success) {}
187      }
# Line 191 | Line 191 | public class ThreadLocalRandomTest exten
191       */
192      public void testNextLongBadBounds() {
193          try {
194 <            long  f = ThreadLocalRandom.current().nextLong(17, 2);
194 >            long f = ThreadLocalRandom.current().nextLong(17, 2);
195              shouldThrow();
196          } catch (IllegalArgumentException success) {}
197      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines