diff --git a/src/testcase/twitter/TestPOSTdestroyTwitter.java b/src/testcase/twitter/TestPOSTdestroyTwitter.java index 816f799..d93a08e 100644 --- a/src/testcase/twitter/TestPOSTdestroyTwitter.java +++ b/src/testcase/twitter/TestPOSTdestroyTwitter.java @@ -1,10 +1,19 @@ package testcase.twitter; +import restfulchecker.RestParam; +import restfulchecker.RestChecker.Method; + public class TestPOSTdestroyTwitter extends TestTwitter { - public TestPOSTdestroyTwitter() { + public TestPOSTdestroyTwitter(String userID, String ListID) { super(); - // TODO Auto-generated constructor stub + query.add(new RestParam("list_id", ListID)); + path.add("lists"); + path.add("destroy.json"); + check.setupRestTest(Method.POST, query, form, path); + check.getResourceParam().setPathParams("lists"); + check.getResourceParam().setPathParams("list.json"); + check.getResourceParam().setQueryParams(new RestParam("screen_name", userID)); } }