diff --git a/src/testcase/twitter/TestTwitter.java b/src/testcase/twitter/TestTwitter.java index ccbe576..afa49a0 100644 --- a/src/testcase/twitter/TestTwitter.java +++ b/src/testcase/twitter/TestTwitter.java @@ -3,14 +3,14 @@ import testcase.TestCase; abstract public class TestTwitter extends TestCase { + private String value = "OAuth oauth_consumer_key=\"xPk6o11catewYwxGcXvvvqo2I\",oauth_token=\"3279293718-bTcjYBEU1dqTdD2mm40J8IV7UrGcPHneHFLzomD\",oauth_signature_method=\"HMAC-SHA1\",oauth_timestamp=\"1547012412\",oauth_nonce=\"kv64T7\",oauth_version=\"1.0\",oauth_signature=\"2xcicANqvUKcshB0ahoz48LX234%3D\""; protected TestTwitter() { super("https://api.twitter.com/1.1"); } public void start() { - check.setProperty("Authorization", - "OAuth oauth_consumer_key=\"xPk6o11catewYwxGcXvvvqo2I\",oauth_token=\"3279293718-bTcjYBEU1dqTdD2mm40J8IV7UrGcPHneHFLzomD\",oauth_signature_method=\"HMAC-SHA1\",oauth_timestamp=\"1546913535\",oauth_nonce=\"m4f2czd1NIQ\",oauth_version=\"1.0\",oauth_signature=\"H0vVKGlrT%2FBbfSOD0RI5pOBT7ss%3D\""); + check.setProperty("Authorization",value); check.doRestTest(); } }