|
|
@@ -57,8 +57,8 @@ class WeChatPaySupportTest
|
|
57
|
57
|
|
|
58
|
58
|
Path privatePath = tempDir.resolve("private.pem");
|
|
59
|
59
|
Path publicPath = tempDir.resolve("public.pem");
|
|
60
|
|
- Files.writeString(privatePath, toPkcs8Pem(privateKey), StandardCharsets.UTF_8);
|
|
61
|
|
- Files.writeString(publicPath, toPublicPem(publicKey), StandardCharsets.UTF_8);
|
|
|
60
|
+ Files.write(privatePath, toPkcs8Pem(privateKey).getBytes(StandardCharsets.UTF_8));
|
|
|
61
|
+ Files.write(publicPath, toPublicPem(publicKey).getBytes(StandardCharsets.UTF_8));
|
|
62
|
62
|
|
|
63
|
63
|
payProperties = new WeChatPayProperties();
|
|
64
|
64
|
payProperties.setEnabled(true);
|