Home / Function/ setup() — spring-boot Function Reference

setup() — spring-boot Function Reference

Architecture documentation for the setup() function in Log4J2LoggingSystemTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  d724961d_a761_2616_a2c2_2b9cebf2a034["setup()"]
  cca4fb90_6111_020d_43de_d7f5a242d67e["clear()"]
  d724961d_a761_2616_a2c2_2b9cebf2a034 -->|calls| cca4fb90_6111_020d_43de_d7f5a242d67e
  1c70a669_b986_1d08_11e5_0f5b58ad7e27["LoggingInitializationContext()"]
  d724961d_a761_2616_a2c2_2b9cebf2a034 -->|calls| 1c70a669_b986_1d08_11e5_0f5b58ad7e27
  5442b6c9_c948_65c9_3b32_df1993add6a2["getName()"]
  d724961d_a761_2616_a2c2_2b9cebf2a034 -->|calls| 5442b6c9_c948_65c9_3b32_df1993add6a2
  style d724961d_a761_2616_a2c2_2b9cebf2a034 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/logging/log4j2/Log4J2LoggingSystemTests.java lines 105–112

	@BeforeEach
	void setup(TestInfo testInfo) {
		PluginRegistry.getInstance().clear();
		this.loggingSystem = new TestLog4J2LoggingSystem(testInfo.getDisplayName());
		this.environment = new MockEnvironment();
		this.initializationContext = new LoggingInitializationContext(this.environment);
		this.logger = this.loggingSystem.getLoggerContext().getLogger(getClass().getName());
	}

Domain

Subdomains

Frequently Asked Questions

What does setup() do?
setup() is a function in the spring-boot codebase.
What does setup() call?
setup() calls 3 function(s): LoggingInitializationContext, clear, getName.

Analyze Your Own Codebase

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

Try Supermodel Free