41 |
|
public void testSetSeed() { |
42 |
|
try { |
43 |
|
ThreadLocalRandom.current().setSeed(17); |
44 |
+ |
shouldThrow(); |
45 |
|
} catch (UnsupportedOperationException success) { |
46 |
|
} |
47 |
|
} |
120 |
|
public void testNextIntBoundedNeg() { |
121 |
|
try { |
122 |
|
int f = ThreadLocalRandom.current().nextInt(-17); |
123 |
+ |
shouldThrow(); |
124 |
|
} catch (IllegalArgumentException success) { |
125 |
|
} |
126 |
|
} |
131 |
|
public void testNextIntBadBounds() { |
132 |
|
try { |
133 |
|
int f = ThreadLocalRandom.current().nextInt(17, 2); |
134 |
+ |
shouldThrow(); |
135 |
|
} catch (IllegalArgumentException success) { |
136 |
|
} |
137 |
|
} |
185 |
|
public void testNextLongBoundedNeg() { |
186 |
|
try { |
187 |
|
long f = ThreadLocalRandom.current().nextLong(-17); |
188 |
+ |
shouldThrow(); |
189 |
|
} catch (IllegalArgumentException success) { |
190 |
|
} |
191 |
|
} |
196 |
|
public void testNextLongBadBounds() { |
197 |
|
try { |
198 |
|
long f = ThreadLocalRandom.current().nextLong(17, 2); |
199 |
+ |
shouldThrow(); |
200 |
|
} catch (IllegalArgumentException success) { |
201 |
|
} |
202 |
|
} |