Newer
Older
RestfulChecker / src / testcase / twitter / TestTwitter.java
y-ota on 9 Jan 2019 1000 bytes format
package testcase.twitter;

import testcase.TestCase;

abstract public class TestTwitter extends TestCase {
	private String getvalue = "OAuth oauth_consumer_key=\"xPk6o11catewYwxGcXvvvqo2I\",oauth_token=\"3279293718-bTcjYBEU1dqTdD2mm40J8IV7UrGcPHneHFLzomD\",oauth_signature_method=\"HMAC-SHA1\",oauth_timestamp=\"1547013260\",oauth_nonce=\"FH58v1\",oauth_version=\"1.0\",oauth_signature=\"sbnqpQrsx9wFv65GEi5gDbJBhBU%3D\"";
	private String postvalue = "OAuth oauth_consumer_key=\"xPk6o11catewYwxGcXvvvqo2I\",oauth_token=\"3279293718-bTcjYBEU1dqTdD2mm40J8IV7UrGcPHneHFLzomD\",oauth_signature_method=\"HMAC-SHA1\",oauth_timestamp=\"1547013283\",oauth_nonce=\"HtB3Gl\",oauth_version=\"1.0\",oauth_signature=\"xpYKAcSDgLYzvZf%2FGVa%2BTMqnJq0%3D\"";

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

	public void start() {
		check.setProperty("Authorization", postvalue);
		check.getResourceParam().setProperty("Authorization", getvalue);
		check.doRestTest();
	}
}