NoSnakeYamlPropertySourceLoaderTests Class — spring-boot Architecture
Architecture documentation for the NoSnakeYamlPropertySourceLoaderTests class in NoSnakeYamlPropertySourceLoaderTests.java from the spring-boot codebase.
Entity Profile
Source Code
core/spring-boot/src/test/java/org/springframework/boot/env/NoSnakeYamlPropertySourceLoaderTests.java lines 31–43
@ClassPathExclusions("snakeyaml-*.jar")
class NoSnakeYamlPropertySourceLoaderTests {
private final YamlPropertySourceLoader loader = new YamlPropertySourceLoader();
@Test
void load() {
ByteArrayResource resource = new ByteArrayResource("foo:\n bar: spam".getBytes());
assertThatIllegalStateException().isThrownBy(() -> this.loader.load("resource", resource))
.withMessageContaining("Attempted to load resource but snakeyaml was not found on the classpath");
}
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free