Simon Willnauer <simonw@apache.org>: Author Summary
Build | Completed | Code commits | Tests |
---|---|---|---|
RNDTEST › SOFTWARE › #44 | 8 years ago | 7272 passed |
Build | Completed | Code commits | Tests |
---|
Build | Completed | Code commits | Tests |
---|
Build | Completed | Code commits | Tests |
---|---|---|---|
RNDTEST › SOFTWARE › #44 | 8 years ago | 7272 passed |
Build | Completed | Code commits | Tests |
---|
Build | Completed | Code commits | Tests |
---|
Today calls to RandomizedTest#randomInt() etc. always use the current
thread local context and the randomness on top of it's stack. In certain
situations for instance if a method produces a configuration or a infrastructure
resource that should be reproducible calls using the threadlocal context can poision
the random sequence and destroy reproducibilty. This commit adds a utiltiy
that allows to run such a method with a new randomness instance to ensure reproducibiilty
even if the code that is executed in this context uses the threadlocal random context.