testMaxFileSizeProperty() — spring-boot Function Reference
Architecture documentation for the testMaxFileSizeProperty() function in LogbackLoggingSystemTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 89f9799a_0c8a_c6c0_4593_804611f74a64["testMaxFileSizeProperty()"] 4400e573_306a_8839_64ce_a2c7142a8e79["testMaxFileSizePropertyWithLogbackFileSize()"] 4400e573_306a_8839_64ce_a2c7142a8e79 -->|calls| 89f9799a_0c8a_c6c0_4593_804611f74a64 3c0547d7_3978_1b24_f645_b7950aff09de["testMaxFileSizePropertyWithDataSize()"] 3c0547d7_3978_1b24_f645_b7950aff09de -->|calls| 89f9799a_0c8a_c6c0_4593_804611f74a64 8cc4a4cb_c51f_3746_9b70_43192d5af614["testMaxFileSizePropertyWithBytesValue()"] 8cc4a4cb_c51f_3746_9b70_43192d5af614 -->|calls| 89f9799a_0c8a_c6c0_4593_804611f74a64 1c70a669_b986_1d08_11e5_0f5b58ad7e27["LoggingInitializationContext()"] 89f9799a_0c8a_c6c0_4593_804611f74a64 -->|calls| 1c70a669_b986_1d08_11e5_0f5b58ad7e27 13cca41d_e6d4_6c55_4166_597017d5c02e["tmpDir()"] 89f9799a_0c8a_c6c0_4593_804611f74a64 -->|calls| 13cca41d_e6d4_6c55_4166_597017d5c02e bc937c1c_ec1c_7511_0eee_c35de09ea03e["getLogFile()"] 89f9799a_0c8a_c6c0_4593_804611f74a64 -->|calls| bc937c1c_ec1c_7511_0eee_c35de09ea03e 58d8d837_b5a1_09c5_cdb4_ff02e18c8c38["initialize()"] 89f9799a_0c8a_c6c0_4593_804611f74a64 -->|calls| 58d8d837_b5a1_09c5_cdb4_ff02e18c8c38 599de821_15df_43cf_ef7e_1637f660f37b["getLineWithText()"] 89f9799a_0c8a_c6c0_4593_804611f74a64 -->|calls| 599de821_15df_43cf_ef7e_1637f660f37b 2c1789c5_7083_293b_2c92_43021688613d["getRollingPolicy()"] 89f9799a_0c8a_c6c0_4593_804611f74a64 -->|calls| 2c1789c5_7083_293b_2c92_43021688613d style 89f9799a_0c8a_c6c0_4593_804611f74a64 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/logging/logback/LogbackLoggingSystemTests.java lines 439–448
private void testMaxFileSizeProperty(String sizeValue, String expectedFileSize) {
this.environment.setProperty("logging.logback.rollingpolicy.max-file-size", sizeValue);
LoggingInitializationContext loggingInitializationContext = new LoggingInitializationContext(this.environment);
File file = new File(tmpDir(), "logback-test.log");
LogFile logFile = getLogFile(file.getPath(), null);
initialize(loggingInitializationContext, null, logFile);
this.logger.info("Hello world");
assertThat(getLineWithText(file, "Hello world")).contains("INFO");
assertThat(ReflectionTestUtils.getField(getRollingPolicy(), "maxFileSize")).hasToString(expectedFileSize);
}
Domain
Subdomains
Calls
Called By
- testMaxFileSizePropertyWithBytesValue()
- testMaxFileSizePropertyWithDataSize()
- testMaxFileSizePropertyWithLogbackFileSize()
Source
Frequently Asked Questions
What does testMaxFileSizeProperty() do?
testMaxFileSizeProperty() is a function in the spring-boot codebase.
What does testMaxFileSizeProperty() call?
testMaxFileSizeProperty() calls 6 function(s): LoggingInitializationContext, getLineWithText, getLogFile, getRollingPolicy, initialize, tmpDir.
What calls testMaxFileSizeProperty()?
testMaxFileSizeProperty() is called by 3 function(s): testMaxFileSizePropertyWithBytesValue, testMaxFileSizePropertyWithDataSize, testMaxFileSizePropertyWithLogbackFileSize.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free