SslStoreBundleTests Class — spring-boot Architecture
Architecture documentation for the SslStoreBundleTests class in SslStoreBundleTests.java from the spring-boot codebase.
Entity Profile
Source Code
core/spring-boot/src/test/java/org/springframework/boot/ssl/SslStoreBundleTests.java lines 31–52
class SslStoreBundleTests {
@Test
void noneReturnsEmptySslStoreBundle() {
SslStoreBundle bundle = SslStoreBundle.NONE;
assertThat(bundle.getKeyStore()).isNull();
assertThat(bundle.getKeyStorePassword()).isNull();
assertThat(bundle.getTrustStore()).isNull();
}
@Test
void ofCreatesStoreBundle() {
KeyStore keyStore = mock(KeyStore.class);
String keyStorePassword = "secret";
KeyStore trustStore = mock(KeyStore.class);
SslStoreBundle bundle = SslStoreBundle.of(keyStore, keyStorePassword, trustStore);
assertThat(bundle.getKeyStore()).isSameAs(keyStore);
assertThat(bundle.getKeyStorePassword()).isEqualTo(keyStorePassword);
assertThat(bundle.getTrustStore()).isSameAs(trustStore);
}
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free