Home / Function/ testIllegalSet() — netty Function Reference

testIllegalSet() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

common/src/test/java/io/netty/util/NettyRuntimeTests.java lines 34–45

    @Test
    public void testIllegalSet() {
        final NettyRuntime.AvailableProcessorsHolder holder = new NettyRuntime.AvailableProcessorsHolder();
        for (final int i : new int[] { -1, 0 }) {
            try {
                holder.setAvailableProcessors(i);
                fail();
            } catch (final IllegalArgumentException e) {
                assertThat(e.getMessage()).contains("(expected: > 0)");
            }
        }
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free