BAEL-1422: added BDD style test for asserting UnsupportedOperationException while setting seed for ThreadLocalRandom
This commit is contained in:
parent
036fabc9f7
commit
12a1924cb3
|
@ -54,5 +54,10 @@ public class ThreadLocalRandomTest {
|
|||
|
||||
assertTrue(generatedInt < Double.MAX_VALUE && generatedInt >= Double.MIN_VALUE);
|
||||
}
|
||||
|
||||
@Test(expected = UnsupportedOperationException.class)
|
||||
public void givenUsingThreadLocalRandom_whenSettingSeed_thenThrowUnsupportedOperationException() {
|
||||
ThreadLocalRandom.current().setSeed(0l);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue