Newer
Older
RestfulChecker / src / testcase / TestYouTube.java
yoichiro on 13 Dec 2018 685 bytes rename
package testcase;

import java.util.ArrayList;

import restfulchecker.RestChecker;
import restfulchecker.RestParam;

abstract public class TestYouTube {
	protected RestChecker check = new RestChecker();
	protected ArrayList<RestParam> query = new ArrayList<>();
	protected ArrayList<RestParam> form = new ArrayList<>();
	protected ArrayList<String> path = new ArrayList<>();

	protected TestYouTube(String token) {
		check.setAccount("https://www.googleapis.com/youtube/v3");
		query.add(new RestParam("access_token", token));
		check.getResourceParam().setQueryParams(new RestParam("access_token", token));
	}

	public void start() {
		check.doRestTest();
	}
}