package testcase.twitter; import restfulchecker.RestParam; import restfulchecker.RestChecker.Method; public class TestPOSTupdateTwitter extends TestTwitter { private String updatevalue = "OAuth oauth_consumer_key=\"xPk6o11catewYwxGcXvvvqo2I\",oauth_token=\"3279293718-bTcjYBEU1dqTdD2mm40J8IV7UrGcPHneHFLzomD\",oauth_signature_method=\"HMAC-SHA1\",oauth_timestamp=\"1547015150\",oauth_nonce=\"MT2uux\",oauth_version=\"1.0\",oauth_signature=\"lloPry59IyifWpmwNqDK1uIxqgo%3D\""; public TestPOSTupdateTwitter(String ListID, String name) { super(); query.add(new RestParam("list_id", ListID)); query.add(new RestParam("name", name)); path.add("lists"); path.add("update.json"); check.setProperty("Authorization", updatevalue); check.setupRestTest(Method.POST, query, form, path); check.getResourceParam().setPathParams("lists"); check.getResourceParam().setPathParams("list.json"); } }