BAEL-6014: Address PR comments
This commit is contained in:
		
							parent
							
								
									ee57392b4f
								
							
						
					
					
						commit
						34754e74ad
					
				| @ -25,8 +25,8 @@ public class KeystoreCertificateNameAliasUnitTest { | |||||||
|         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 owner = x509Certificate.getSubjectX500Principal().getName(); |         String ownerName = x509Certificate.getSubjectX500Principal().getName(); | ||||||
|         assertThat(owner.contains("my-cn.localhost")).isTrue(); |         assertThat(ownerName.contains("my-cn.localhost")).isTrue(); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
| @Test | @Test | ||||||
| @ -36,8 +36,8 @@ public class KeystoreCertificateNameAliasUnitTest { | |||||||
|     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 owner = x509Certificate.getSubjectX500Principal().getName(); |     String ownerName = x509Certificate.getSubjectX500Principal().getName(); | ||||||
|         assertThat(owner.contains("commonName1")).isFalse(); |     assertThat(ownerName.contains("commonName1")).isFalse(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| @Test | @Test | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user