Home / Class/ EnclosedInSquareBracketsConverterTests Class — spring-boot Architecture

EnclosedInSquareBracketsConverterTests Class — spring-boot Architecture

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

Entity Profile

Source Code

core/spring-boot/src/test/java/org/springframework/boot/logging/log4j2/EnclosedInSquareBracketsConverterTests.java lines 30–55

class EnclosedInSquareBracketsConverterTests {

	private final TestLogEvent event = new TestLogEvent();

	@Test
	void transformWhenEmpty() {
		StringBuilder output = new StringBuilder();
		newConverter("").format(this.event, output);
		assertThat(output).hasToString("");
	}

	@Test
	void transformWhenName() {
		StringBuilder output = new StringBuilder();
		newConverter("My Application").format(this.event, output);
		assertThat(output).hasToString("[My Application] ");
	}

	private EnclosedInSquareBracketsConverter newConverter(String in) {
		EnclosedInSquareBracketsConverter converter = EnclosedInSquareBracketsConverter.newInstance(null,
				new String[] { in });
		assertThat(converter).isNotNull();
		return converter;
	}

}

Analyze Your Own Codebase

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

Try Supermodel Free