fix java okhttp oauth test

This commit is contained in:
WILLIAM CHENG 2021-11-21 11:29:00 +08:00
parent 06f97b465d
commit c619f7fd63

View File

@ -32,18 +32,13 @@ public class RetryingOAuthTest {
@Before
public void setUp() throws Exception {
<<<<<<< HEAD
oauth = new RetryingOAuth("_clientId", "_clientSecret", OAuthFlow.ACCESS_CODE,
"https://token.example.com", Collections.<String, String>emptyMap());
=======
oauth =
new RetryingOAuth(
"_clientId",
"_clientSecret",
OAuthFlow.accessCode,
OAuthFlow.ACCESS_CODE,
"https://token.example.com",
Collections.<String, String>emptyMap());
>>>>>>> 5.4.x
oauth.setAccessToken("expired-access-token");
FieldUtils.writeField(oauth, "oAuthClient", mockOAuthClient(), true);
}