getLayerResolverWhenDocumentValid() — spring-boot Function Reference
Architecture documentation for the getLayerResolverWhenDocumentValid() function in CustomLayersProviderTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD ae1670d2_c1df_5840_e28c_9ee4d2a196d3["getLayerResolverWhenDocumentValid()"] 3fb09c1b_bc63_bf29_df26_7f17634bc16e["getDocument()"] ae1670d2_c1df_5840_e28c_9ee4d2a196d3 -->|calls| 3fb09c1b_bc63_bf29_df26_7f17634bc16e dea708c0_0a35_54ae_6047_daec4864dd1f["mockLibrary()"] ae1670d2_c1df_5840_e28c_9ee4d2a196d3 -->|calls| dea708c0_0a35_54ae_6047_daec4864dd1f style ae1670d2_c1df_5840_e28c_9ee4d2a196d3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
build-plugin/spring-boot-maven-plugin/src/test/java/org/springframework/boot/maven/CustomLayersProviderTests.java lines 53–71
@Test
void getLayerResolverWhenDocumentValid() throws Exception {
CustomLayers layers = this.customLayersProvider.getLayers(getDocument("layers.xml"));
assertThat(layers).extracting("name")
.containsExactly("my-deps", "my-dependencies-name", "snapshot-dependencies", "my-resources",
"configuration", "application");
Library snapshot = mockLibrary("test-SNAPSHOT.jar", "org.foo", "1.0.0-SNAPSHOT");
Library groupId = mockLibrary("my-library", "com.acme", null);
Library otherDependency = mockLibrary("other-library", "org.foo", null);
Library localSnapshotDependency = mockLibrary("local-library", "org.foo", "1.0-SNAPSHOT");
given(localSnapshotDependency.isLocal()).willReturn(true);
assertThat(layers.getLayer(snapshot)).hasToString("snapshot-dependencies");
assertThat(layers.getLayer(groupId)).hasToString("my-deps");
assertThat(layers.getLayer(otherDependency)).hasToString("my-dependencies-name");
assertThat(layers.getLayer(localSnapshotDependency)).hasToString("application");
assertThat(layers.getLayer("META-INF/resources/test.css")).hasToString("my-resources");
assertThat(layers.getLayer("application.yml")).hasToString("configuration");
assertThat(layers.getLayer("test")).hasToString("application");
}
Domain
Subdomains
Source
Frequently Asked Questions
What does getLayerResolverWhenDocumentValid() do?
getLayerResolverWhenDocumentValid() is a function in the spring-boot codebase.
What does getLayerResolverWhenDocumentValid() call?
getLayerResolverWhenDocumentValid() calls 2 function(s): getDocument, mockLibrary.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free