Skip to content

Commit

Permalink
now the api returns code 403 for accounts without XAuth permission
Browse files Browse the repository at this point in the history
  • Loading branch information
yusuke committed Apr 24, 2016
1 parent ab2d880 commit 5dcda2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion twitter4j-core/src/test/java/twitter4j/auth/OAuthTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ public void testXAuth() throws Exception {
fail("expecting TwitterException");
} catch (TwitterException te) {
// id1 doesn't have access to xAuth
assertEquals(401, te.getStatusCode());
assertEquals(403, te.getStatusCode());
}
InputStream is = OAuthTest.class.getResourceAsStream("/xauth-test.properties");
if (null == is) {
Expand Down

0 comments on commit 5dcda2d

Please sign in to comment.