Home / Class/ DeferredLogFactoryTests Class — spring-boot Architecture

DeferredLogFactoryTests Class — spring-boot Architecture

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

Entity Profile

Source Code

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

class DeferredLogFactoryTests {

	private final DeferredLogFactory factory = (supplier) -> this.log = supplier.get();

	private @Nullable Log log;

	@Test
	void getLogFromClassCreatesLogSupplier() {
		this.factory.getLog(DeferredLogFactoryTests.class);
		assertThat(this.log).isNotNull();
	}

	@Test
	void getLogFromDestinationCreatesLogSupplier() {
		Log log = mock(Log.class);
		this.factory.getLog(log);
		assertThat(this.log).isSameAs(log);
	}

}

Analyze Your Own Codebase

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

Try Supermodel Free