ManagingDependenciesDocumentationTests Class — spring-boot Architecture
Architecture documentation for the ManagingDependenciesDocumentationTests class in ManagingDependenciesDocumentationTests.java from the spring-boot codebase.
Entity Profile
Relationship Graph
Source Code
build-plugin/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/docs/ManagingDependenciesDocumentationTests.java lines 35–84
@ExtendWith(GradleMultiDslExtension.class)
class ManagingDependenciesDocumentationTests {
@SuppressWarnings("NullAway.Init")
GradleBuild gradleBuild;
@TestTemplate
void dependenciesExampleEvaluatesSuccessfully() {
this.gradleBuild.script(Examples.DIR + "managing-dependencies/dependencies").build();
}
@TestTemplate
void customManagedVersions() {
assertThat(this.gradleBuild.script(Examples.DIR + "managing-dependencies/custom-version")
.build("slf4jVersion")
.getOutput()).contains("1.7.20");
}
@TestTemplate
void dependencyManagementInIsolation() {
assertThat(this.gradleBuild.script(Examples.DIR + "managing-dependencies/configure-bom")
.build("dependencyManagement")
.getOutput()).contains("org.springframework.boot:spring-boot-starter ");
}
@TestTemplate
void dependencyManagementInIsolationWithPluginsBlock() {
assumingThat(this.gradleBuild.getDsl() == Dsl.KOTLIN,
() -> assertThat(
this.gradleBuild.script(Examples.DIR + "managing-dependencies/configure-bom-with-plugins")
.build("dependencyManagement")
.getOutput())
.contains("org.springframework.boot:spring-boot-starter TEST-SNAPSHOT"));
}
@TestTemplate
void configurePlatform() {
assertThat(this.gradleBuild.script(Examples.DIR + "managing-dependencies/configure-platform")
.build("dependencies", "--configuration", "compileClasspath")
.getOutput()).contains("org.springframework.boot:spring-boot-starter ");
}
@TestTemplate
void customManagedVersionsWithPlatform() {
assertThat(this.gradleBuild.script(Examples.DIR + "managing-dependencies/custom-version-with-platform")
.build("dependencies", "--configuration", "compileClasspath")
.getOutput()).contains("1.7.20");
}
}
Domain
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free