ThreadLocalRandomTest Class — netty Architecture
Architecture documentation for the ThreadLocalRandomTest class in ThreadLocalRandomTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 35081120_1189_14a0_40a4_11449a328376["ThreadLocalRandomTest"] 9d37e3ad_473b_4b6f_1e5a_2941fdc8f623["ThreadLocalRandomTest.java"] 35081120_1189_14a0_40a4_11449a328376 -->|defined in| 9d37e3ad_473b_4b6f_1e5a_2941fdc8f623 8aef90c4_7b30_2c46_d1a5_c458c548d0fc["getInitialSeedUniquifierPreservesInterrupt()"] 35081120_1189_14a0_40a4_11449a328376 -->|method| 8aef90c4_7b30_2c46_d1a5_c458c548d0fc
Relationship Graph
Source Code
common/src/test/java/io/netty/util/internal/ThreadLocalRandomTest.java lines 22–37
public class ThreadLocalRandomTest {
@Test
public void getInitialSeedUniquifierPreservesInterrupt() {
try {
Thread.currentThread().interrupt();
assertTrue(Thread.currentThread().isInterrupted(),
"Assert that thread is interrupted before invocation of getInitialSeedUniquifier()");
ThreadLocalRandom.getInitialSeedUniquifier();
assertTrue(Thread.currentThread().isInterrupted(),
"Assert that thread is interrupted after invocation of getInitialSeedUniquifier()");
} finally {
Thread.interrupted(); // clear interrupted status in order to not affect other tests
}
}
}
Source
Frequently Asked Questions
What is the ThreadLocalRandomTest class?
ThreadLocalRandomTest is a class in the netty codebase, defined in common/src/test/java/io/netty/util/internal/ThreadLocalRandomTest.java.
Where is ThreadLocalRandomTest defined?
ThreadLocalRandomTest is defined in common/src/test/java/io/netty/util/internal/ThreadLocalRandomTest.java at line 22.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free