From ee57392b4f96f0c83adda0b5bc026869529f800e Mon Sep 17 00:00:00 2001 From: Constantin Date: Mon, 20 Nov 2023 20:12:51 +0200 Subject: [PATCH] BAEL-6014: Remove newline --- .../keystorealias/KeystoreCertificateNameAliasUnitTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core-java-modules/core-java-security-4/src/test/java/com/baeldung/keystorealias/KeystoreCertificateNameAliasUnitTest.java b/core-java-modules/core-java-security-4/src/test/java/com/baeldung/keystorealias/KeystoreCertificateNameAliasUnitTest.java index 47bc4c3425..26bd937ca4 100644 --- a/core-java-modules/core-java-security-4/src/test/java/com/baeldung/keystorealias/KeystoreCertificateNameAliasUnitTest.java +++ b/core-java-modules/core-java-security-4/src/test/java/com/baeldung/keystorealias/KeystoreCertificateNameAliasUnitTest.java @@ -36,8 +36,7 @@ public class KeystoreCertificateNameAliasUnitTest { assertThat(keystore.containsAlias(KEYSTORE_ALIAS)).isTrue(); X509Certificate x509Certificate = (X509Certificate) keystore.getCertificate(KEYSTORE_ALIAS); - String owner = x509Certificate.getSubjectX500Principal() - .getName(); + String owner = x509Certificate.getSubjectX500Principal().getName(); assertThat(owner.contains("commonName1")).isFalse(); }