Home / Function/ testMultipleSets() — netty Function Reference

testMultipleSets() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

common/src/test/java/io/netty/util/NettyRuntimeTests.java lines 47–57

    @Test
    public void testMultipleSets() {
        final NettyRuntime.AvailableProcessorsHolder holder = new NettyRuntime.AvailableProcessorsHolder();
        holder.setAvailableProcessors(1);
        try {
            holder.setAvailableProcessors(2);
            fail();
        } catch (final IllegalStateException e) {
            assertThat(e.getMessage()).contains("availableProcessors is already set to [1], rejecting [2]");
        }
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free