Home / Function/ testIsTraceEnabled() — netty Function Reference

testIsTraceEnabled() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

common/src/test/java/io/netty/util/internal/logging/Slf4JLoggerTest.java lines 27–39

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

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

        InternalLogger logger = new Slf4JLogger(mockLogger);
        assertTrue(logger.isTraceEnabled());

        verify(mockLogger).getName();
        verify(mockLogger).isTraceEnabled();
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free