Newer
Older
RestfulChecker / src / testcase / youtube / TestPOSTYouTube.java
y-ota on 14 Dec 2018 817 bytes testcaseを整理
package testcase.youtube;

import java.util.ArrayList;

import restfulchecker.RemoveJsonParam;
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.getResourceParam().setPathParams("playlists");
		check.getResourceParam().setQueryParams(new RestParam("mine", "true"));
		check.getResourceParam().setQueryParams(new RestParam("part", "id"));
		check.setRemoveParam(new RemoveJsonParam("etag", new ArrayList<>()));
		path.add("playlists");
		query.add(new RestParam("part", "snippet"));
		check.setupRestTest(Method.POST, query, form, path);
	}

}