diff --git a/src/testcase/twitter/TestPOSTcreateTwitter.java b/src/testcase/twitter/TestPOSTcreateTwitter.java index 6ff61b8..71db5f5 100644 --- a/src/testcase/twitter/TestPOSTcreateTwitter.java +++ b/src/testcase/twitter/TestPOSTcreateTwitter.java @@ -4,6 +4,7 @@ import restfulchecker.RestChecker.Method; public class TestPOSTcreateTwitter extends TestTwitter { + private String createvalue = "OAuth oauth_consumer_key=\"xPk6o11catewYwxGcXvvvqo2I\",oauth_token=\"3279293718-bTcjYBEU1dqTdD2mm40J8IV7UrGcPHneHFLzomD\",oauth_signature_method=\"HMAC-SHA1\",oauth_timestamp=\"1547014351\",oauth_nonce=\"11H11C\",oauth_version=\"1.0\",oauth_signature=\"sVBleU27sLobrcXsVF0UPCpBo74%3D\""; public TestPOSTcreateTwitter() { super(); @@ -12,6 +13,7 @@ path.add("lists"); path.add("create.json"); check.setupRestTest(Method.POST, query, form, path); + check.setProperty("Authorization", createvalue); check.getResourceParam().setPathParams("lists"); check.getResourceParam().setPathParams("list.json"); }