Newer
Older
RestfulChecker / src / testcase / TestPUTYouTube.java
y-ota on 13 Dec 2018 799 bytes 工事完了
package testcase;

import java.util.ArrayList;

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

public class TestPUTYouTube extends TestYouTube {

	public TestPUTYouTube(String token) {
		super(token);
		check.jsonAcquisition("src/testcase/put.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"));
		check.setRemoveParam(new RemoveJsonParam("etag", new ArrayList<>()));
		path.add("playlists");
		query.add(new RestParam("part", "snippet"));
		check.setupRestTest(Method.PUT, query, form, path);
	}

}