update test code

This commit is contained in:
Daniel Qian 2014-10-19 23:28:18 +08:00
parent 6b02facbfe
commit b04bff0496
2 changed files with 7 additions and 13 deletions

View File

@ -32,11 +32,4 @@ public class WxBaseAPITest {
Assert.assertTrue(StringUtils.isNotBlank(after));
}
public void testCheckSignature() throws WxErrorException {
String timestamp = "1413729506";
String nonce = "1753282854";
String signature = "af210121811dce2d6f306612cb133cba490e818b";
Assert.assertTrue(wxService.checkSignature(timestamp, nonce, signature));
}
}

View File

@ -1,8 +1,9 @@
<xml>
<appId></appId>
<secret></secret>
<token></token>
<accessToken></accessToken>
<expiresIn></expiresIn>
<openId></openId>
<appId>公众号appID</appId>
<secret>公众号appsecret</secret>
<token>公众号Token</token>
<aesKey>公众号EncodingAESKey</aesKey>
<accessToken>可以不填写</accessToken>
<expiresIn>可以不填写</expiresIn>
<openId>某个加你公众号的用户的openId</openId>
</xml>