Home / Class/ AbstractJsonTests Class — spring-boot Architecture

AbstractJsonTests Class — spring-boot Architecture

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

Entity Profile

Relationship Graph

Source Code

buildpack/spring-boot-buildpack-platform/src/test/java/org/springframework/boot/buildpack/platform/json/AbstractJsonTests.java lines 37–59

public abstract class AbstractJsonTests {

	protected final JsonMapper getJsonMapper() {
		return SharedJsonMapper.get();
	}

	protected final InputStream getContent(String name) {
		InputStream result = getClass().getResourceAsStream(name);
		assertThat(result).as("JSON source " + name).isNotNull();
		return result;
	}

	protected final String getContentAsString(String name) {
		try (InputStream in = getContent(name)) {
			return new BufferedReader(new InputStreamReader(in, StandardCharsets.UTF_8)).lines()
				.collect(Collectors.joining("\n"));
		}
		catch (IOException ex) {
			throw new UncheckedIOException(ex);
		}
	}

}

Domain

Analyze Your Own Codebase

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

Try Supermodel Free