Polish
This commit is contained in:
@@ -108,14 +108,14 @@ class SslAutoConfigurationTests {
|
||||
.run((context) -> {
|
||||
assertThat(context).hasSingleBean(SslBundles.class);
|
||||
SslBundles bundles = context.getBean(SslBundles.class);
|
||||
SslBundle first = bundles.getBundle("custom");
|
||||
assertThat(first).isNotNull();
|
||||
assertThat(first.getStores()).isNotNull();
|
||||
assertThat(first.getManagers()).isNotNull();
|
||||
assertThat(first.getKey().getAlias()).isEqualTo("alias1");
|
||||
assertThat(first.getKey().getPassword()).isEqualTo("secret1");
|
||||
assertThat(first.getStores().getKeyStore().getType()).isEqualTo("PKCS12");
|
||||
assertThat(first.getStores().getTrustStore().getType()).isEqualTo("PKCS12");
|
||||
SslBundle bundle = bundles.getBundle("custom");
|
||||
assertThat(bundle).isNotNull();
|
||||
assertThat(bundle.getStores()).isNotNull();
|
||||
assertThat(bundle.getManagers()).isNotNull();
|
||||
assertThat(bundle.getKey().getAlias()).isEqualTo("alias1");
|
||||
assertThat(bundle.getKey().getPassword()).isEqualTo("secret1");
|
||||
assertThat(bundle.getStores().getKeyStore().getType()).isEqualTo("PKCS12");
|
||||
assertThat(bundle.getStores().getTrustStore().getType()).isEqualTo("PKCS12");
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user