增加 纠正删除刷新临牌时,调用mapper错误 的单元测试

This commit is contained in:
YunaiV 2022-05-27 19:55:38 +08:00
parent 68a0b381c1
commit abe6828d0c

View File

@ -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