...
|
...
|
@@ -45,16 +45,14 @@ public class OpenIdTest { |
|
|
*/
|
|
|
@Test
|
|
|
public void testUnBind() {
|
|
|
String token = OpenIdTest.bindWithOpenIdAndLoginAndGetToken(Constants.USR_OPENID, Constants.USR_OPENID_TYPE);
|
|
|
Map<String, String> params = new HashMap<String, String>();
|
|
|
params.put("username", Constants.USR_ACC);
|
|
|
params.put("password", EncodeTools.encode("MD5", Constants.USR_PWD));
|
|
|
params.put("openId", Constants.USR_OPENID);
|
|
|
params.put("openIdType", Constants.USR_OPENID_TYPE);
|
|
|
|
|
|
params.put("t", HttpTools.getNow());
|
|
|
params.put("type", Constants.KEY_ID);
|
|
|
params.put("sign", HttpTools.getSign(params));
|
|
|
String response = HttpTools.requestByMap(URL_OPEN_ID, "DELETE", params);
|
|
|
String response = HttpTools.requestByMapWithToken(URL_OPEN_ID, "DELETE", params, token);
|
|
|
System.out.println(response);
|
|
|
Assert.assertTrue(RtnCodeTools.verifyCode(response, Constants.OPENID_UNBIND_SUCESS));
|
|
|
|
...
|
...
|
|