Home / Class/ ExtendedWhitespaceThrowableProxyConverterTests Class — spring-boot Architecture

ExtendedWhitespaceThrowableProxyConverterTests Class — spring-boot Architecture

Architecture documentation for the ExtendedWhitespaceThrowableProxyConverterTests class in ExtendedWhitespaceThrowableProxyConverterTests.java from the spring-boot codebase.

Entity Profile

Source Code

core/spring-boot/src/test/java/org/springframework/boot/logging/logback/ExtendedWhitespaceThrowableProxyConverterTests.java lines 31–50

class ExtendedWhitespaceThrowableProxyConverterTests {

	private final ExtendedWhitespaceThrowableProxyConverter converter = new ExtendedWhitespaceThrowableProxyConverter();

	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());
	}

}

Analyze Your Own Codebase

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

Try Supermodel Free