BAEL-6014: Fix formatting
This commit is contained in:
parent
34754e74ad
commit
0bf89cfe37
|
@ -29,21 +29,21 @@ public class KeystoreCertificateNameAliasUnitTest {
|
||||||
assertThat(ownerName.contains("my-cn.localhost")).isTrue();
|
assertThat(ownerName.contains("my-cn.localhost")).isTrue();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void whenCheckingAliasAndName_thenNameIsNotFound() throws Exception {
|
void whenCheckingAliasAndName_thenNameIsNotFound() throws Exception {
|
||||||
KeyStore keystore = readKeyStore();
|
KeyStore keystore = readKeyStore();
|
||||||
|
|
||||||
assertThat(keystore.containsAlias(KEYSTORE_ALIAS)).isTrue();
|
assertThat(keystore.containsAlias(KEYSTORE_ALIAS)).isTrue();
|
||||||
|
|
||||||
X509Certificate x509Certificate = (X509Certificate) keystore.getCertificate(KEYSTORE_ALIAS);
|
X509Certificate x509Certificate = (X509Certificate) keystore.getCertificate(KEYSTORE_ALIAS);
|
||||||
String ownerName = x509Certificate.getSubjectX500Principal().getName();
|
String ownerName = x509Certificate.getSubjectX500Principal().getName();
|
||||||
assertThat(ownerName.contains("commonName1")).isFalse();
|
assertThat(ownerName.contains("commonName1")).isFalse();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void whenCheckingAliasAndName_thenAliasIsNotFound() throws Exception {
|
void whenCheckingAliasAndName_thenAliasIsNotFound() throws Exception {
|
||||||
KeyStore keystore = readKeyStore();
|
KeyStore keystore = readKeyStore();
|
||||||
|
|
||||||
assertThat(keystore.containsAlias("alias1")).isFalse();
|
assertThat(keystore.containsAlias("alias1")).isFalse();
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue