aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/com/juick/server/tests
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-12-25 16:44:01 +0300
committerGravatar Vitaly Takmazov2019-12-25 16:44:01 +0300
commit78ee6cf0ec2ab93ad322dd2c6137b68f8e1de34b (patch)
tree5ad8b38a5f33e62d69a8edbb9b1c951bf9347918 /src/test/java/com/juick/server/tests
parentdf812aa75aac92ff4685dcf052b9ac4ed8d12fe6 (diff)
AppleClientSecretGenerator does not depend on Spring
Diffstat (limited to 'src/test/java/com/juick/server/tests')
-rw-r--r--src/test/java/com/juick/server/tests/ServerTests.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/java/com/juick/server/tests/ServerTests.java b/src/test/java/com/juick/server/tests/ServerTests.java
index 30f2a025..a8fc4563 100644
--- a/src/test/java/com/juick/server/tests/ServerTests.java
+++ b/src/test/java/com/juick/server/tests/ServerTests.java
@@ -2339,7 +2339,7 @@ public class ServerTests {
Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());
JcaPEMKeyConverter pemConverter = new JcaPEMKeyConverter();
pemConverter.setProvider("BC");
- final Reader pemReader = new StringReader(clientSecretGenerator.getPemData());
+ final Reader pemReader = new InputStreamReader(new ByteArrayInputStream(clientSecretGenerator.getPemData()));
final PEMParser parser = new PEMParser(pemReader);
PrivateKey privateKey;
Object pemObj = parser.readObject();