补充单侧

This commit is contained in:
handy 2024-02-02 10:12:21 +08:00
parent 78a318e799
commit 431adb447f

View File

@ -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()));