Home / Function/ testIsErrorEnabled() — netty Function Reference

testIsErrorEnabled() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

common/src/test/java/io/netty/util/internal/logging/Slf4JLoggerTest.java lines 83–95

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

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

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

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

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free