Home / Function/ testInfoWithException() — netty Function Reference

testInfoWithException() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

common/src/test/java/io/netty/util/internal/logging/Slf4JLoggerTest.java lines 162–173

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

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

        InternalLogger logger = new Slf4JLogger(mockLogger);
        logger.info("a", e);

        verify(mockLogger).getName();
        verify(mockLogger).info("a", e);
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free