testTotalSizeCapPropertyWithXmlConfiguration() — spring-boot Function Reference
Architecture documentation for the testTotalSizeCapPropertyWithXmlConfiguration() function in LogbackLoggingSystemTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD efd4c3fb_493e_b351_9823_f9493f2d6e0a["testTotalSizeCapPropertyWithXmlConfiguration()"] 1c70a669_b986_1d08_11e5_0f5b58ad7e27["LoggingInitializationContext()"] efd4c3fb_493e_b351_9823_f9493f2d6e0a -->|calls| 1c70a669_b986_1d08_11e5_0f5b58ad7e27 13cca41d_e6d4_6c55_4166_597017d5c02e["tmpDir()"] efd4c3fb_493e_b351_9823_f9493f2d6e0a -->|calls| 13cca41d_e6d4_6c55_4166_597017d5c02e bc937c1c_ec1c_7511_0eee_c35de09ea03e["getLogFile()"] efd4c3fb_493e_b351_9823_f9493f2d6e0a -->|calls| bc937c1c_ec1c_7511_0eee_c35de09ea03e 58d8d837_b5a1_09c5_cdb4_ff02e18c8c38["initialize()"] efd4c3fb_493e_b351_9823_f9493f2d6e0a -->|calls| 58d8d837_b5a1_09c5_cdb4_ff02e18c8c38 599de821_15df_43cf_ef7e_1637f660f37b["getLineWithText()"] efd4c3fb_493e_b351_9823_f9493f2d6e0a -->|calls| 599de821_15df_43cf_ef7e_1637f660f37b 2c1789c5_7083_293b_2c92_43021688613d["getRollingPolicy()"] efd4c3fb_493e_b351_9823_f9493f2d6e0a -->|calls| 2c1789c5_7083_293b_2c92_43021688613d style efd4c3fb_493e_b351_9823_f9493f2d6e0a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/logging/logback/LogbackLoggingSystemTests.java lines 514–526
@Test
@WithIncludeBaseXmlResource
void testTotalSizeCapPropertyWithXmlConfiguration() {
String expectedSize = "101 MB";
this.environment.setProperty("logging.logback.rollingpolicy.total-size-cap", expectedSize);
LoggingInitializationContext loggingInitializationContext = new LoggingInitializationContext(this.environment);
File file = new File(tmpDir(), "logback-test.log");
LogFile logFile = getLogFile(file.getPath(), null);
initialize(loggingInitializationContext, "classpath:include-base.xml", logFile);
this.logger.info("Hello world");
assertThat(getLineWithText(file, "Hello world")).contains("INFO");
assertThat(ReflectionTestUtils.getField(getRollingPolicy(), "totalSizeCap")).hasToString(expectedSize);
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does testTotalSizeCapPropertyWithXmlConfiguration() do?
testTotalSizeCapPropertyWithXmlConfiguration() is a function in the spring-boot codebase.
What does testTotalSizeCapPropertyWithXmlConfiguration() call?
testTotalSizeCapPropertyWithXmlConfiguration() calls 6 function(s): LoggingInitializationContext, getLineWithText, getLogFile, getRollingPolicy, initialize, tmpDir.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free