Home / Class/ DockerLogTests Class — spring-boot Architecture

DockerLogTests Class — spring-boot Architecture

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

Entity Profile

Source Code

buildpack/spring-boot-buildpack-platform/src/test/java/org/springframework/boot/buildpack/platform/docker/DockerLogTests.java lines 32–51

@ExtendWith(OutputCaptureExtension.class)
class DockerLogTests {

	@Test
	void toSystemOutPrintsToSystemOut(CapturedOutput output) {
		DockerLog logger = DockerLog.toSystemOut();
		logger.log("Hello world");
		assertThat(output.getErr()).isEmpty();
		assertThat(output.getOut()).contains("Hello world");
	}

	@Test
	void toPrintsToOutput(CapturedOutput output) {
		DockerLog logger = DockerLog.to(System.err);
		logger.log("Hello world");
		assertThat(output.getOut()).isEmpty();
		assertThat(output.getErr()).contains("Hello world");
	}

}

Analyze Your Own Codebase

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

Try Supermodel Free