Home / Function/ beforeClass() — netty Function Reference

beforeClass() — netty Function Reference

Architecture documentation for the beforeClass() function in FileRegionThrottleTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  aabb6bf8_7005_461b_4479_b398f0740b62["beforeClass()"]
  446f1e15_06cc_5ba2_8909_c276a7d8f4d2["FileRegionThrottleTest"]
  aabb6bf8_7005_461b_4479_b398f0740b62 -->|defined in| 446f1e15_06cc_5ba2_8909_c276a7d8f4d2
  style aabb6bf8_7005_461b_4479_b398f0740b62 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/test/java/io/netty/handler/traffic/FileRegionThrottleTest.java lines 60–75

    @BeforeAll
    public static void beforeClass() throws IOException {
        final Random r = new Random();
        for (int i = 0; i < BYTES.length; i++) {
            BYTES[i] = (byte) r.nextInt(255);
        }

        tmp = PlatformDependent.createTempFile("netty-traffic", ".tmp", null);
        tmp.deleteOnExit();
        try (FileOutputStream out = new FileOutputStream(tmp)) {
            out.write(BYTES);
            out.flush();
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does beforeClass() do?
beforeClass() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/traffic/FileRegionThrottleTest.java.
Where is beforeClass() defined?
beforeClass() is defined in handler/src/test/java/io/netty/handler/traffic/FileRegionThrottleTest.java at line 60.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free