Home / Function/ testIsWarnEnabled() — netty Function Reference

testIsWarnEnabled() — netty Function Reference

Architecture documentation for the testIsWarnEnabled() function in CommonsLoggerTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  ddc15bd1_ce5b_53b9_e489_43003bf4d418["testIsWarnEnabled()"]
  4d434096_9af8_4429_060e_ff690783d6b1["CommonsLoggerTest"]
  ddc15bd1_ce5b_53b9_e489_43003bf4d418 -->|defined in| 4d434096_9af8_4429_060e_ff690783d6b1
  style ddc15bd1_ce5b_53b9_e489_43003bf4d418 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/test/java/io/netty/util/internal/logging/CommonsLoggerTest.java lines 63–73

    @Test
    public void testIsWarnEnabled() {
        Log mockLog = mock(Log.class);

        when(mockLog.isWarnEnabled()).thenReturn(true);

        InternalLogger logger = new CommonsLogger(mockLog, "foo");
        assertTrue(logger.isWarnEnabled());

        verify(mockLog).isWarnEnabled();
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free