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

testTotalSizeCapProperty() — spring-boot Function Reference

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

Function java GradlePlugin DslExtensions calls 6 called by 3

Entity Profile

Dependency Diagram

graph TD
  7199a6f6_3ed7_ff1f_151a_82c78d89aa9b["testTotalSizeCapProperty()"]
  af345f7c_a1e2_aec8_0ad8_f855fdba5887["testTotalSizeCapPropertyWithLogbackFileSize()"]
  af345f7c_a1e2_aec8_0ad8_f855fdba5887 -->|calls| 7199a6f6_3ed7_ff1f_151a_82c78d89aa9b
  dbf93e78_8c68_814b_afa8_7cabebf68a4f["testTotalSizeCapPropertyWithDataSize()"]
  dbf93e78_8c68_814b_afa8_7cabebf68a4f -->|calls| 7199a6f6_3ed7_ff1f_151a_82c78d89aa9b
  85d49aa7_c954_5011_06d5_9602d2ed7583["testTotalSizeCapPropertyWithBytesValue()"]
  85d49aa7_c954_5011_06d5_9602d2ed7583 -->|calls| 7199a6f6_3ed7_ff1f_151a_82c78d89aa9b
  1c70a669_b986_1d08_11e5_0f5b58ad7e27["LoggingInitializationContext()"]
  7199a6f6_3ed7_ff1f_151a_82c78d89aa9b -->|calls| 1c70a669_b986_1d08_11e5_0f5b58ad7e27
  13cca41d_e6d4_6c55_4166_597017d5c02e["tmpDir()"]
  7199a6f6_3ed7_ff1f_151a_82c78d89aa9b -->|calls| 13cca41d_e6d4_6c55_4166_597017d5c02e
  bc937c1c_ec1c_7511_0eee_c35de09ea03e["getLogFile()"]
  7199a6f6_3ed7_ff1f_151a_82c78d89aa9b -->|calls| bc937c1c_ec1c_7511_0eee_c35de09ea03e
  58d8d837_b5a1_09c5_cdb4_ff02e18c8c38["initialize()"]
  7199a6f6_3ed7_ff1f_151a_82c78d89aa9b -->|calls| 58d8d837_b5a1_09c5_cdb4_ff02e18c8c38
  599de821_15df_43cf_ef7e_1637f660f37b["getLineWithText()"]
  7199a6f6_3ed7_ff1f_151a_82c78d89aa9b -->|calls| 599de821_15df_43cf_ef7e_1637f660f37b
  2c1789c5_7083_293b_2c92_43021688613d["getRollingPolicy()"]
  7199a6f6_3ed7_ff1f_151a_82c78d89aa9b -->|calls| 2c1789c5_7083_293b_2c92_43021688613d
  style 7199a6f6_3ed7_ff1f_151a_82c78d89aa9b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

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

	private void testTotalSizeCapProperty(String sizeValue, String expectedFileSize) {
		this.environment.setProperty("logging.logback.rollingpolicy.total-size-cap", 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(), "totalSizeCap")).hasToString(expectedFileSize);
	}

Domain

Subdomains

Called By

  • testTotalSizeCapPropertyWithBytesValue()
  • testTotalSizeCapPropertyWithDataSize()
  • testTotalSizeCapPropertyWithLogbackFileSize()

Frequently Asked Questions

What does testTotalSizeCapProperty() do?
testTotalSizeCapProperty() is a function in the spring-boot codebase.
What does testTotalSizeCapProperty() call?
testTotalSizeCapProperty() calls 6 function(s): LoggingInitializationContext, getLineWithText, getLogFile, getRollingPolicy, initialize, tmpDir.
What calls testTotalSizeCapProperty()?
testTotalSizeCapProperty() is called by 3 function(s): testTotalSizeCapPropertyWithBytesValue, testTotalSizeCapPropertyWithDataSize, testTotalSizeCapPropertyWithLogbackFileSize.

Analyze Your Own Codebase

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

Try Supermodel Free