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 |
|
} |
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 |
|
} |
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 |
|
} |
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 |
|
} |