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

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

public class TestPOSTcreateTwitter extends TestTwitter {
	private String createvalue = "OAuth oauth_consumer_key=\"xPk6o11catewYwxGcXvvvqo2I\",oauth_token=\"3279293718-bTcjYBEU1dqTdD2mm40J8IV7UrGcPHneHFLzomD\",oauth_signature_method=\"HMAC-SHA1\",oauth_timestamp=\"1547014351\",oauth_nonce=\"11H11C\",oauth_version=\"1.0\",oauth_signature=\"sVBleU27sLobrcXsVF0UPCpBo74%3D\"";

	public TestPOSTcreateTwitter() {
		super();
		query.add(new RestParam("name", "test"));
		query.add(new RestParam("mode", "private"));
		path.add("lists");
		path.add("create.json");
		check.setupRestTest(Method.POST, query, form, path);
		check.setProperty("Authorization", createvalue);
		check.getResourceParam().setPathParams("lists");
		check.getResourceParam().setPathParams("list.json");
	}

}