Home / Function/ testGetWithSystemProperty() — netty Function Reference

testGetWithSystemProperty() — netty Function Reference

Architecture documentation for the testGetWithSystemProperty() function in NettyRuntimeTests.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  accfe2dd_3f42_98e0_a20a_7c29a7bb509c["testGetWithSystemProperty()"]
  f8a8d4a2_21ee_fb99_d44b_e7434e8cbd80["NettyRuntimeTests"]
  accfe2dd_3f42_98e0_a20a_7c29a7bb509c -->|defined in| f8a8d4a2_21ee_fb99_d44b_e7434e8cbd80
  style accfe2dd_3f42_98e0_a20a_7c29a7bb509c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/test/java/io/netty/util/NettyRuntimeTests.java lines 162–176

    @Test
    public void testGetWithSystemProperty() {
        final String availableProcessorsSystemProperty = SystemPropertyUtil.get("io.netty.availableProcessors");
        try {
            System.setProperty("io.netty.availableProcessors", "2048");
            final NettyRuntime.AvailableProcessorsHolder holder = new NettyRuntime.AvailableProcessorsHolder();
            assertEquals(2048, holder.availableProcessors());
        } finally {
            if (availableProcessorsSystemProperty != null) {
                System.setProperty("io.netty.availableProcessors", availableProcessorsSystemProperty);
            } else {
                System.clearProperty("io.netty.availableProcessors");
            }
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does testGetWithSystemProperty() do?
testGetWithSystemProperty() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/NettyRuntimeTests.java.
Where is testGetWithSystemProperty() defined?
testGetWithSystemProperty() is defined in common/src/test/java/io/netty/util/NettyRuntimeTests.java at line 162.

Analyze Your Own Codebase

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

Try Supermodel Free