Skip to content

Commit f262c74

Browse files
committed
添加输出日志代码,抑制warning
1 parent e016372 commit f262c74

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

weixin-java-common/src/test/java/me/chanjar/weixin/common/util/crypto/WxCryptUtilTest.java

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,24 @@ public void testNormal() throws ParserConfigurationException, SAXException, IOEx
4545

4646
Element root = document.getDocumentElement();
4747
String cipherText = root.getElementsByTagName("Encrypt").item(0).getTextContent();
48+
System.out.println(cipherText);
49+
4850
String msgSignature = root.getElementsByTagName("MsgSignature").item(0).getTextContent();
51+
System.out.println(msgSignature);
52+
4953
String timestamp = root.getElementsByTagName("TimeStamp").item(0).getTextContent();
54+
System.out.println(timestamp);
55+
5056
String nonce = root.getElementsByTagName("Nonce").item(0).getTextContent();
51-
57+
System.out.println(nonce);
58+
5259
String messageText = String.format(xmlFormat, cipherText);
53-
60+
System.out.println(messageText);
61+
5462
// 第三方收到企业号平台发送的消息
5563
String plainMessage = pc.decrypt(cipherText);
56-
5764
System.out.println(plainMessage);
65+
5866
assertEquals(plainMessage, replyMsg);
5967
}
6068

0 commit comments

Comments
 (0)