Home / Function/ shouldGetInstance() — netty Function Reference

shouldGetInstance() — netty Function Reference

Architecture documentation for the shouldGetInstance() function in InternalLoggerFactoryTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  aa4867ba_1144_4a09_19b4_29d951ec3581["shouldGetInstance()"]
  6bc946e4_0e86_42c9_31ef_46e80e7399bf["InternalLoggerFactoryTest"]
  aa4867ba_1144_4a09_19b4_29d951ec3581 -->|defined in| 6bc946e4_0e86_42c9_31ef_46e80e7399bf
  style aa4867ba_1144_4a09_19b4_29d951ec3581 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/test/java/io/netty/util/internal/logging/InternalLoggerFactoryTest.java lines 60–72

    @Test
    public void shouldGetInstance() {
        InternalLoggerFactory.setDefaultFactory(oldLoggerFactory);

        String helloWorld = "Hello, world!";

        InternalLogger one = InternalLoggerFactory.getInstance("helloWorld");
        InternalLogger two = InternalLoggerFactory.getInstance(helloWorld.getClass());

        assertNotNull(one);
        assertNotNull(two);
        assertNotSame(one, two);
    }

Domain

Subdomains

Frequently Asked Questions

What does shouldGetInstance() do?
shouldGetInstance() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/internal/logging/InternalLoggerFactoryTest.java.
Where is shouldGetInstance() defined?
shouldGetInstance() is defined in common/src/test/java/io/netty/util/internal/logging/InternalLoggerFactoryTest.java at line 60.

Analyze Your Own Codebase

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

Try Supermodel Free