testWarnWithException() — netty Function Reference
Architecture documentation for the testWarnWithException() function in Slf4JLoggerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 711d2309_6300_3e17_debd_e21bea0dd44e["testWarnWithException()"] 3e84843f_a698_9773_6fd1_273d916b21a7["Slf4JLoggerTest"] 711d2309_6300_3e17_debd_e21bea0dd44e -->|defined in| 3e84843f_a698_9773_6fd1_273d916b21a7 style 711d2309_6300_3e17_debd_e21bea0dd44e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/test/java/io/netty/util/internal/logging/Slf4JLoggerTest.java lines 188–199
@Test
public void testWarnWithException() {
Logger mockLogger = mock(Logger.class);
when(mockLogger.getName()).thenReturn("foo");
InternalLogger logger = new Slf4JLogger(mockLogger);
logger.warn("a", e);
verify(mockLogger).getName();
verify(mockLogger).warn("a", e);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testWarnWithException() do?
testWarnWithException() is a function in the netty codebase, defined in common/src/test/java/io/netty/util/internal/logging/Slf4JLoggerTest.java.
Where is testWarnWithException() defined?
testWarnWithException() is defined in common/src/test/java/io/netty/util/internal/logging/Slf4JLoggerTest.java at line 188.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free