Skip to content

Commit 7a4e071

Browse files
committed
Polish
1 parent 3e37a50 commit 7a4e071

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/ssl/SslAutoConfigurationTests.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,14 @@ void sslBundlesCreatedWithCustomSslBundle() {
108108
.run((context) -> {
109109
assertThat(context).hasSingleBean(SslBundles.class);
110110
SslBundles bundles = context.getBean(SslBundles.class);
111-
SslBundle first = bundles.getBundle("custom");
112-
assertThat(first).isNotNull();
113-
assertThat(first.getStores()).isNotNull();
114-
assertThat(first.getManagers()).isNotNull();
115-
assertThat(first.getKey().getAlias()).isEqualTo("alias1");
116-
assertThat(first.getKey().getPassword()).isEqualTo("secret1");
117-
assertThat(first.getStores().getKeyStore().getType()).isEqualTo("PKCS12");
118-
assertThat(first.getStores().getTrustStore().getType()).isEqualTo("PKCS12");
111+
SslBundle bundle = bundles.getBundle("custom");
112+
assertThat(bundle).isNotNull();
113+
assertThat(bundle.getStores()).isNotNull();
114+
assertThat(bundle.getManagers()).isNotNull();
115+
assertThat(bundle.getKey().getAlias()).isEqualTo("alias1");
116+
assertThat(bundle.getKey().getPassword()).isEqualTo("secret1");
117+
assertThat(bundle.getStores().getKeyStore().getType()).isEqualTo("PKCS12");
118+
assertThat(bundle.getStores().getTrustStore().getType()).isEqualTo("PKCS12");
119119
});
120120
}
121121

0 commit comments

Comments
 (0)