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

base64ResourceResolves() — spring-boot Function Reference

Architecture documentation for the base64ResourceResolves() function in ProtocolResolverApplicationContextInitializerIntegrationTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  b0ede74b_3436_0cee_4317_feec64a93c6d["base64ResourceResolves()"]
  16b51c89_dde4_bfa7_4c6d_cd813dd33ba3["SpringApplication()"]
  b0ede74b_3436_0cee_4317_feec64a93c6d -->|calls| 16b51c89_dde4_bfa7_4c6d_cd813dd33ba3
  0307cf8d_fc8f_0c1f_27ae_adc000d77a4c["setDefaultProperties()"]
  b0ede74b_3436_0cee_4317_feec64a93c6d -->|calls| 0307cf8d_fc8f_0c1f_27ae_adc000d77a4c
  9fc735d3_f2de_a77c_c1a1_abf218992bd6["setWebApplicationType()"]
  b0ede74b_3436_0cee_4317_feec64a93c6d -->|calls| 9fc735d3_f2de_a77c_c1a1_abf218992bd6
  d8b71f60_5035_e907_31f8_64449e139e8b["getResource()"]
  b0ede74b_3436_0cee_4317_feec64a93c6d -->|calls| d8b71f60_5035_e907_31f8_64449e139e8b
  f5ecfeee_2faa_bfff_05c7_ad8e17034d42["run()"]
  b0ede74b_3436_0cee_4317_feec64a93c6d -->|calls| f5ecfeee_2faa_bfff_05c7_ad8e17034d42
  style b0ede74b_3436_0cee_4317_feec64a93c6d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/io/ProtocolResolverApplicationContextInitializerIntegrationTests.java lines 44–55

	@Test
	void base64ResourceResolves() throws IOException {
		SpringApplication application = new SpringApplication(TestConfiguration.class);
		application.setDefaultProperties(Map.of("test.resource", "base64:dGVzdC12YWx1ZQ=="));
		application.setWebApplicationType(WebApplicationType.NONE);
		ConfigurableApplicationContext context = application.run();
		TestProperties propertiesBean = context.getBean(TestProperties.class);
		Resource resource = propertiesBean.getResource();
		assertThat(resource).isNotNull();
		assertThat(resource.exists()).isTrue();
		assertThat(resource.getContentAsString(Charset.defaultCharset())).isEqualTo("test-value");
	}

Domain

Subdomains

Frequently Asked Questions

What does base64ResourceResolves() do?
base64ResourceResolves() is a function in the spring-boot codebase.
What does base64ResourceResolves() call?
base64ResourceResolves() calls 5 function(s): SpringApplication, getResource, run, setDefaultProperties, setWebApplicationType.

Analyze Your Own Codebase

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

Try Supermodel Free