Skip to content

Commit 8abbf7f

Browse files
taistotrOlesja Aarma
authored andcommitted
RM-4840: multiline string comparison test fails on Windows
1 parent ae0552c commit 8abbf7f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cdoc2-lib/src/test/java/ee/cyber/cdoc2/smartid/JWSSignerTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ void testParseSidCert() throws CertificateException {
182182
assertEquals("PNOEE-30303039914", certData.getSemanticsIdentifier());
183183
assertEquals("30303039914", certData.getIdentityNumber());
184184
assertEquals(sidCert, certData.getAuthCertificate());
185-
assertEquals(expectedRsaPubKeyPem, SIDAuthCertData.getRSAPublicKeyPkcs1Pem(sidCert));
185+
assertEquals(expectedRsaPubKeyPem.replaceAll("\\s", ""),
186+
SIDAuthCertData.getRSAPublicKeyPkcs1Pem(sidCert).replaceAll("\\s", ""));
186187
}
187188

188189
}

0 commit comments

Comments
 (0)