Newer
Older
RestfulChecker / src / testcase / youtube / TestPUTYouTube.java
y-ota on 10 Jan 2019 826 bytes おのれレート制限
package testcase.youtube;

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/youtube/put.json");
		check.setProperty("Content-type", "application/json");
		check.getResourceParam().setPathParams("playlists");
		check.getResourceParam().setQueryParams(new RestParam("mine", "true"));
		check.getResourceParam().setQueryParams(new RestParam("part", "snippet"));
		check.setRemoveParam(new RemoveJsonParam("etag", new ArrayList<>()));
		path.add("playlists");
		query.add(new RestParam("part", "snippet"));
		check.setupRestTest(Method.PUT, query, form, path);
	}

}