mirror of
https://gitee.com/yadong.zhang/JustAuth.git
synced 2025-12-06 16:58:24 +08:00
补充单侧
This commit is contained in:
parent
78a318e799
commit
431adb447f
@ -45,10 +45,10 @@ public class AuthExtendRequestTest {
|
|||||||
.code("code")
|
.code("code")
|
||||||
.state(state)
|
.state(state)
|
||||||
.build();
|
.build();
|
||||||
AuthResponse response = request.login(callback);
|
AuthResponse<AuthUser> response = request.login(callback);
|
||||||
Assert.assertNotNull(response);
|
Assert.assertNotNull(response);
|
||||||
|
|
||||||
AuthUser user = (AuthUser) response.getData();
|
AuthUser user = response.getData();
|
||||||
Assert.assertNotNull(user);
|
Assert.assertNotNull(user);
|
||||||
System.out.println(JSON.toJSONString(user));
|
System.out.println(JSON.toJSONString(user));
|
||||||
}
|
}
|
||||||
@ -74,7 +74,7 @@ public class AuthExtendRequestTest {
|
|||||||
.redirectUri("http://redirectUri")
|
.redirectUri("http://redirectUri")
|
||||||
.build());
|
.build());
|
||||||
|
|
||||||
AuthResponse response = request.refresh(AuthToken.builder().build());
|
AuthResponse<AuthToken> response = request.refresh(AuthToken.builder().build());
|
||||||
Assert.assertNotNull(response);
|
Assert.assertNotNull(response);
|
||||||
System.out.println(JSON.toJSONString(response.getData()));
|
System.out.println(JSON.toJSONString(response.getData()));
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user