WhitespaceThrowableProxyConverterTests Class — spring-boot Architecture
Architecture documentation for the WhitespaceThrowableProxyConverterTests class in WhitespaceThrowableProxyConverterTests.java from the spring-boot codebase.
Entity Profile
Source Code
core/spring-boot/src/test/java/org/springframework/boot/logging/logback/WhitespaceThrowableProxyConverterTests.java lines 31–50
class WhitespaceThrowableProxyConverterTests {
private final WhitespaceThrowableProxyConverter converter = new WhitespaceThrowableProxyConverter();
private final LoggingEvent event = new LoggingEvent();
@Test
void noStackTrace() {
String s = this.converter.convert(this.event);
assertThat(s).isEmpty();
}
@Test
void withStackTrace() {
this.event.setThrowableProxy(new ThrowableProxy(new RuntimeException()));
String s = this.converter.convert(this.event);
assertThat(s).startsWith(System.lineSeparator()).endsWith(System.lineSeparator());
}
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free