mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-30 03:01:53 +08:00
增加 纠正删除刷新临牌时,调用mapper错误 的单元测试
This commit is contained in:
parent
68a0b381c1
commit
abe6828d0c
@ -134,6 +134,7 @@ public class OAuth2TokenServiceImplTest extends BaseDbAndRedisUnitTest {
|
|||||||
// 调用,并断言
|
// 调用,并断言
|
||||||
assertServiceException(() -> oauth2TokenService.refreshAccessToken(refreshToken, clientId),
|
assertServiceException(() -> oauth2TokenService.refreshAccessToken(refreshToken, clientId),
|
||||||
new ErrorCode(401, "刷新令牌已过期"));
|
new ErrorCode(401, "刷新令牌已过期"));
|
||||||
|
assertEquals(0, oauth2RefreshTokenMapper.selectCount());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Loading…
Reference in New Issue
Block a user