Skip to content
This repository has been archived by the owner on Nov 19, 2021. It is now read-only.

Commit

Permalink
TFJ-460 removing httpclient-support's test.properties for the securit…
Browse files Browse the repository at this point in the history
…y reasons
  • Loading branch information
yusuke committed Dec 8, 2010
1 parent 0b3c325 commit c06010f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 49 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -8,6 +8,7 @@ twitter4j-core/src/test/resources/xauth-test.properties
twitter4j-core/src/test/resources/sitestream-test.properties
twitter4j-core/src/test/resources/test.properties
twitter4j-media-support/src/test/resources/twitter4j.properties
twitter4j-httpclient-support/src/test/resources/twitter4j.properties
twitter4j-examples/target/*
.DS_Store
~$*
Expand Down
Expand Up @@ -27,6 +27,7 @@
package twitter4j;

import junit.framework.TestCase;
import twitter4j.conf.PropertyConfiguration;
import twitter4j.http.AccessToken;

import java.io.File;
Expand All @@ -46,16 +47,7 @@ public ApacheHttpClientTest(String name) {

protected void setUp() throws Exception {
super.setUp();
Properties p = new Properties();

InputStream is = ApacheHttpClientTest.class.getResourceAsStream("/test.properties");
p.load(is);
is.close();

twitterAPI1 = new TwitterFactory().getInstance();
twitterAPI1.setOAuthConsumer(p.getProperty("desktopConsumerKey"),p.getProperty("desktopConsumerSecret"));
twitterAPI1.setOAuthAccessToken(new AccessToken(p.getProperty("id1.oauth_token"), p.getProperty("id1.oauth_token_secret")));

}

protected void tearDown() throws Exception {
Expand Down
40 changes: 0 additions & 40 deletions twitter4j-httpclient-support/src/test/resources/test.properties

This file was deleted.

0 comments on commit c06010f

Please sign in to comment.