package testcase.youtube; import java.util.ArrayList; import restfulchecker.RemoveJsonParam; import restfulchecker.RestParam; import restfulchecker.RestChecker.Method; public class TestDELETEYouTube extends TestYouTube { public TestDELETEYouTube(String token, String id) { super(token); 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("id", id)); check.setupRestTest(Method.DELETE, query, form, path); } }