Newer
Older
RestfulChecker / src / testcase / TestPOSTYouTube.java
y-ota on 13 Dec 2018 659 bytes POSTの動作を確認
package testcase;

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

public class TestPOSTYouTube extends TestYouTube {

	public TestPOSTYouTube(String token) {
		super(token);
		check.jsonAcquisition("src/testcase/post.json");
		check.setProperty("Content-type", "application/json");
		check.getGetnesParam().setPathParams("playlists");
		check.getGetnesParam().setQueryParams(new RestParam("mine", "true"));
		check.getGetnesParam().setQueryParams(new RestParam("part", "id"));
		path.add("playlists");
		query.add(new RestParam("part", "snippet"));
		check.setupRestTest(Method.POST, query, form, path);
	}

}