RandomValuePropertySourceEnvironmentPostProcessorTests Class — spring-boot Architecture
Architecture documentation for the RandomValuePropertySourceEnvironmentPostProcessorTests class in RandomValuePropertySourceEnvironmentPostProcessorTests.java from the spring-boot codebase.
Entity Profile
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/support/RandomValuePropertySourceEnvironmentPostProcessorTests.java lines 35–52
class RandomValuePropertySourceEnvironmentPostProcessorTests {
private final RandomValuePropertySourceEnvironmentPostProcessor postProcessor = new RandomValuePropertySourceEnvironmentPostProcessor(
Supplier::get);
@Test
void getOrderIsBeforeConfigData() {
assertThat(this.postProcessor.getOrder()).isLessThan(ConfigDataEnvironmentPostProcessor.ORDER);
}
@Test
void postProcessEnvironmentAddsPropertySource() {
MockEnvironment environment = new MockEnvironment();
this.postProcessor.postProcessEnvironment(environment, mock(SpringApplication.class));
assertThat(environment.getProperty("random.string")).isNotNull();
}
}
Domain
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free