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

getWithClassPathIncludesProtocolResolvers() — spring-boot Function Reference

Architecture documentation for the getWithClassPathIncludesProtocolResolvers() function in ApplicationResourceLoaderTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  548af210_19bd_db8d_309b_623e4ebfdefe["getWithClassPathIncludesProtocolResolvers()"]
  319e76a4_8e8c_1612_4ddd_5b7e9c02c097["TestClassLoader()"]
  548af210_19bd_db8d_309b_623e4ebfdefe -->|calls| 319e76a4_8e8c_1612_4ddd_5b7e9c02c097
  d64ce718_5bf4_0550_fb50_df2654aa1e02["contentAsString()"]
  548af210_19bd_db8d_309b_623e4ebfdefe -->|calls| d64ce718_5bf4_0550_fb50_df2654aa1e02
  95330da1_28ff_3510_63f7_4bf925e5a555["getResource()"]
  548af210_19bd_db8d_309b_623e4ebfdefe -->|calls| 95330da1_28ff_3510_63f7_4bf925e5a555
  style 548af210_19bd_db8d_309b_623e4ebfdefe fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/io/ApplicationResourceLoaderTests.java lines 181–189

	@Test
	@WithResource(name = TEST_PROTOCOL_RESOLVERS_FACTORIES,
			content = "org.springframework.core.io.ProtocolResolver=org.springframework.boot.io.ReverseStringProtocolResolver")
	void getWithClassPathIncludesProtocolResolvers() throws IOException {
		ClassLoader classLoader = new TestClassLoader(this::useTestProtocolResolversFactories);
		ResourceLoader loader = ApplicationResourceLoader.get(classLoader);
		Resource resource = loader.getResource("reverse:test");
		assertThat(contentAsString(resource)).isEqualTo("tset");
	}

Domain

Subdomains

Calls

Frequently Asked Questions

What does getWithClassPathIncludesProtocolResolvers() do?
getWithClassPathIncludesProtocolResolvers() is a function in the spring-boot codebase.
What does getWithClassPathIncludesProtocolResolvers() call?
getWithClassPathIncludesProtocolResolvers() calls 3 function(s): TestClassLoader, contentAsString, getResource.

Analyze Your Own Codebase

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

Try Supermodel Free