Home / Class/ TestChangelog Class — spring-boot Architecture

TestChangelog Class — spring-boot Architecture

Architecture documentation for the TestChangelog class in TestChangelog.java from the spring-boot codebase.

Entity Profile

Relationship Graph

Source Code

configuration-metadata/spring-boot-configuration-metadata-changelog-generator/src/test/java/org/springframework/boot/configurationmetadata/changelog/TestChangelog.java lines 32–52

final class TestChangelog {

	private TestChangelog() {
	}

	static Changelog load() {
		ConfigurationMetadataRepository previousRepository = load("sample-1.0.json");
		ConfigurationMetadataRepository repository = load("sample-2.0.json");
		return Changelog.of("1.0", previousRepository, "2.0", repository);
	}

	private static ConfigurationMetadataRepository load(String filename) {
		try (InputStream inputStream = new FileInputStream("src/test/resources/" + filename)) {
			return ConfigurationMetadataRepositoryJsonBuilder.create(inputStream).build();
		}
		catch (IOException ex) {
			throw new RuntimeException(ex);
		}
	}

}

Domain

Analyze Your Own Codebase

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

Try Supermodel Free