Newer
Older
RestfulChecker / src / testcase / twitter / TestTwitter.java
y-ota on 20 Dec 2018 490 bytes OAuth用に修正
package testcase.twitter;

import testcase.TestCase;

abstract public class TestTwitter extends TestCase {
	protected OAuthHeader oauth = new OAuthHeader();

	protected TestTwitter() {
		super("https://api.twitter.com/1.1");
	}

	public OAuthHeader getOauth() {
		return oauth;
	}

	public void setOauth(OAuthHeader oauth) {
		this.oauth = oauth;
	}
	
	public void start() {
		check.setProperty("Authorization", oauth.getAuthorization());
		check.doRestTest();
	}
}