Home / Function/ testTraceWithException() — netty Function Reference

testTraceWithException() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

common/src/test/java/io/netty/util/internal/logging/Slf4JLoggerTest.java lines 110–121

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

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

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

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

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free