Home / Class/ SharedJsonMapperTests Class — spring-boot Architecture

SharedJsonMapperTests Class — spring-boot Architecture

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

Entity Profile

Source Code

buildpack/spring-boot-buildpack-platform/src/test/java/org/springframework/boot/buildpack/platform/json/SharedJsonMapperTests.java lines 32–49

class SharedJsonMapperTests {

	@Test
	void getReturnsConfiguredJsonMapper() {
		JsonMapper mapper = SharedJsonMapper.get();
		assertThat(mapper).isNotNull();
		assertThat(
				SerializationFeature.INDENT_OUTPUT.enabledIn(mapper.serializationConfig().getSerializationFeatures()))
			.isTrue();
		assertThat(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES
			.enabledIn(mapper.deserializationConfig().getDeserializationFeatures())).isFalse();
		assertThat(mapper.serializationConfig().getPropertyNamingStrategy())
			.isEqualTo(PropertyNamingStrategies.LOWER_CAMEL_CASE);
		assertThat(mapper.deserializationConfig().getPropertyNamingStrategy())
			.isEqualTo(PropertyNamingStrategies.LOWER_CAMEL_CASE);
	}

}

Analyze Your Own Codebase

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

Try Supermodel Free