init() — netty Function Reference
Architecture documentation for the init() function in InternalLoggerFactoryTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 09388b96_82e2_238c_b55f_31e6ad4162cd["init()"] 6bc946e4_0e86_42c9_31ef_46e80e7399bf["InternalLoggerFactoryTest"] 09388b96_82e2_238c_b55f_31e6ad4162cd -->|defined in| 6bc946e4_0e86_42c9_31ef_46e80e7399bf style 09388b96_82e2_238c_b55f_31e6ad4162cd fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/test/java/io/netty/util/internal/logging/InternalLoggerFactoryTest.java lines 34–42
@BeforeEach
public void init() {
oldLoggerFactory = InternalLoggerFactory.getDefaultFactory();
final InternalLoggerFactory mockFactory = mock(InternalLoggerFactory.class);
mockLogger = mock(InternalLogger.class);
when(mockFactory.newInstance("mock")).thenReturn(mockLogger);
InternalLoggerFactory.setDefaultFactory(mockFactory);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does init() do?
init() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/internal/logging/InternalLoggerFactoryTest.java.
Where is init() defined?
init() is defined in common/src/test/java/io/netty/util/internal/logging/InternalLoggerFactoryTest.java at line 34.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free