SpringBootVersionTests Class — spring-boot Architecture
Architecture documentation for the SpringBootVersionTests class in SpringBootVersionTests.java from the spring-boot codebase.
Entity Profile
Source Code
core/spring-boot/src/test/java/org/springframework/boot/SpringBootVersionTests.java lines 34–56
class SpringBootVersionTests {
@Test
void getVersionShouldReturnVersionMatchingGradleProperties() throws IOException {
String expectedVersion = PropertiesLoaderUtils.loadProperties(new FileSystemResource(findGradleProperties()))
.getProperty("version");
assertThat(SpringBootVersion.getVersion()).isEqualTo(expectedVersion);
}
private File findGradleProperties() {
File current = new File(".").getAbsoluteFile();
while (current != null) {
File gradleProperties = new File(current, "gradle.properties");
System.out.println(gradleProperties);
if (gradleProperties.isFile()) {
return gradleProperties;
}
current = current.getParentFile();
}
throw new IllegalStateException("Could not find gradle.properties");
}
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free