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

exceptionsIncludeClassPackaging() — spring-boot Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  a407c060_4d67_f1a4_1f5b_63def151cdae["exceptionsIncludeClassPackaging()"]
  bffa5cc2_2336_d219_9e81_a81a831f09b1["initialize()"]
  a407c060_4d67_f1a4_1f5b_63def151cdae -->|calls| bffa5cc2_2336_d219_9e81_a81a831f09b1
  ae26b444_14dc_48e1_f326_0b6590847b6f["getRelativeClasspathLocation()"]
  a407c060_4d67_f1a4_1f5b_63def151cdae -->|calls| ae26b444_14dc_48e1_f326_0b6590847b6f
  bc937c1c_ec1c_7511_0eee_c35de09ea03e["getLogFile()"]
  a407c060_4d67_f1a4_1f5b_63def151cdae -->|calls| bc937c1c_ec1c_7511_0eee_c35de09ea03e
  13cca41d_e6d4_6c55_4166_597017d5c02e["tmpDir()"]
  a407c060_4d67_f1a4_1f5b_63def151cdae -->|calls| 13cca41d_e6d4_6c55_4166_597017d5c02e
  501f40c7_eea3_8197_664f_2a7d4a9c3264["beforeInitialize()"]
  a407c060_4d67_f1a4_1f5b_63def151cdae -->|calls| 501f40c7_eea3_8197_664f_2a7d4a9c3264
  style a407c060_4d67_f1a4_1f5b_63def151cdae fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

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

	@Test
	void exceptionsIncludeClassPackaging(CapturedOutput output) {
		this.loggingSystem.beforeInitialize();
		this.loggingSystem.initialize(this.initializationContext, getRelativeClasspathLocation("log4j2-file.xml"),
				getLogFile(null, tmpDir()));
		this.logger.warn("Expected exception", new RuntimeException("Expected"));
		String fileContents = contentOf(new File(tmpDir() + "/spring.log"));
		assertThat(fileContents).contains("[junit-");
		assertThat(output).contains("[junit-");
	}

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free