forked from loafle/openapi-generator-original
fix java okhttp oauth test
This commit is contained in:
parent
06f97b465d
commit
c619f7fd63
@ -32,18 +32,13 @@ public class RetryingOAuthTest {
|
|||||||
|
|
||||||
@Before
|
@Before
|
||||||
public void setUp() throws Exception {
|
public void setUp() throws Exception {
|
||||||
<<<<<<< HEAD
|
|
||||||
oauth = new RetryingOAuth("_clientId", "_clientSecret", OAuthFlow.ACCESS_CODE,
|
|
||||||
"https://token.example.com", Collections.<String, String>emptyMap());
|
|
||||||
=======
|
|
||||||
oauth =
|
oauth =
|
||||||
new RetryingOAuth(
|
new RetryingOAuth(
|
||||||
"_clientId",
|
"_clientId",
|
||||||
"_clientSecret",
|
"_clientSecret",
|
||||||
OAuthFlow.accessCode,
|
OAuthFlow.ACCESS_CODE,
|
||||||
"https://token.example.com",
|
"https://token.example.com",
|
||||||
Collections.<String, String>emptyMap());
|
Collections.<String, String>emptyMap());
|
||||||
>>>>>>> 5.4.x
|
|
||||||
oauth.setAccessToken("expired-access-token");
|
oauth.setAccessToken("expired-access-token");
|
||||||
FieldUtils.writeField(oauth, "oAuthClient", mockOAuthClient(), true);
|
FieldUtils.writeField(oauth, "oAuthClient", mockOAuthClient(), true);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user