Home / Function/ testWarn() — netty Function Reference

testWarn() — netty Function Reference

Architecture documentation for the testWarn() function in Slf4JLoggerTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  5ee12e58_8f68_f841_f85f_568ebe4a5144["testWarn()"]
  3e84843f_a698_9773_6fd1_273d916b21a7["Slf4JLoggerTest"]
  5ee12e58_8f68_f841_f85f_568ebe4a5144 -->|defined in| 3e84843f_a698_9773_6fd1_273d916b21a7
  style 5ee12e58_8f68_f841_f85f_568ebe4a5144 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/test/java/io/netty/util/internal/logging/Slf4JLoggerTest.java lines 175–186

    @Test
    public void testWarn() {
        Logger mockLogger = mock(Logger.class);

        when(mockLogger.getName()).thenReturn("foo");

        InternalLogger logger = new Slf4JLogger(mockLogger);
        logger.warn("a");

        verify(mockLogger).getName();
        verify(mockLogger).warn("a");
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free