diff --git a/src/testcase/TestDELETEYouTube.java b/src/testcase/TestDELETEYouTube.java index 88f41b6..48e1059 100644 --- a/src/testcase/TestDELETEYouTube.java +++ b/src/testcase/TestDELETEYouTube.java @@ -1,10 +1,18 @@ package testcase; +import restfulchecker.RestParam; +import restfulchecker.RestChecker.Method; + public class TestDELETEYouTube extends TestYouTube { - public TestDELETEYouTube(String token) { + public TestDELETEYouTube(String token, String id) { super(token); - // TODO Auto-generated constructor stub + 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("id", id)); + check.setupRestTest(Method.DELETE, query, form, path); } }