Newer
Older
RestfulChecker / src / testcase / twitter / TestPOSTdestroyTwitter.java
y-ota on 9 Jan 2019 876 bytes いろいろ修正
package testcase.twitter;

import restfulchecker.RestParam;
import restfulchecker.RestChecker.Method;

public class TestPOSTdestroyTwitter extends TestTwitter {
	private String destroyvalue = "OAuth oauth_consumer_key=\"xPk6o11catewYwxGcXvvvqo2I\",oauth_token=\"3279293718-bTcjYBEU1dqTdD2mm40J8IV7UrGcPHneHFLzomD\",oauth_signature_method=\"HMAC-SHA1\",oauth_timestamp=\"1547014985\",oauth_nonce=\"9dzWu6\",oauth_version=\"1.0\",oauth_signature=\"ogWla6J3RZfXeQUDsNVgP2eFaUo%3D\"";

	public TestPOSTdestroyTwitter(String ListID) {
		super();
		query.add(new RestParam("list_id", ListID));
		path.add("lists");
		path.add("destroy.json");
		check.setProperty("Authorization", destroyvalue);
		check.setupRestTest(Method.POST, query, form, path);
		check.getResourceParam().setPathParams("lists");
		check.getResourceParam().setPathParams("list.json");
	}

}