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

whenConfigLocationIsXmlFileWithoutExtensionShouldWork() — spring-boot Function Reference

Architecture documentation for the whenConfigLocationIsXmlFileWithoutExtensionShouldWork() function in LogbackLoggingSystemTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  c1fee59a_22b2_04b0_5d87_0853343ac92f["whenConfigLocationIsXmlFileWithoutExtensionShouldWork()"]
  58d8d837_b5a1_09c5_cdb4_ff02e18c8c38["initialize()"]
  c1fee59a_22b2_04b0_5d87_0853343ac92f -->|calls| 58d8d837_b5a1_09c5_cdb4_ff02e18c8c38
  bc937c1c_ec1c_7511_0eee_c35de09ea03e["getLogFile()"]
  c1fee59a_22b2_04b0_5d87_0853343ac92f -->|calls| bc937c1c_ec1c_7511_0eee_c35de09ea03e
  13cca41d_e6d4_6c55_4166_597017d5c02e["tmpDir()"]
  c1fee59a_22b2_04b0_5d87_0853343ac92f -->|calls| 13cca41d_e6d4_6c55_4166_597017d5c02e
  501f40c7_eea3_8197_664f_2a7d4a9c3264["beforeInitialize()"]
  c1fee59a_22b2_04b0_5d87_0853343ac92f -->|calls| 501f40c7_eea3_8197_664f_2a7d4a9c3264
  eb70c58c_f118_cc50_2b70_0b13761cba5c["toString()"]
  c1fee59a_22b2_04b0_5d87_0853343ac92f -->|calls| eb70c58c_f118_cc50_2b70_0b13761cba5c
  style c1fee59a_22b2_04b0_5d87_0853343ac92f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/logging/logback/LogbackLoggingSystemTests.java lines 1004–1022

	@Test
	@WithResource(name = "without-extension", content = """
			<configuration>
			<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
				<encoder>
					<pattern>%msg</pattern>
				</encoder>
			</appender>
			<root level="INFO">
				<appender-ref ref="CONSOLE"/>
			</root>
			</configuration>
			""")
	void whenConfigLocationIsXmlFileWithoutExtensionShouldWork(CapturedOutput output) {
		this.loggingSystem.beforeInitialize();
		initialize(this.initializationContext, "classpath:without-extension", getLogFile(tmpDir() + "/tmp.log", null));
		this.logger.info("No extension and works!");
		assertThat(output.toString()).contains("No extension and works!");
	}

Domain

Subdomains

Frequently Asked Questions

What does whenConfigLocationIsXmlFileWithoutExtensionShouldWork() do?
whenConfigLocationIsXmlFileWithoutExtensionShouldWork() is a function in the spring-boot codebase.
What does whenConfigLocationIsXmlFileWithoutExtensionShouldWork() call?
whenConfigLocationIsXmlFileWithoutExtensionShouldWork() calls 5 function(s): beforeInitialize, getLogFile, initialize, tmpDir, toString.

Analyze Your Own Codebase

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

Try Supermodel Free