Commit abe6828d0ca9e6314bc041c9334b428ae3a20535
1 parent
68a0b381
增加 纠正删除刷新临牌时,调用mapper错误 的单元测试
Showing
1 changed file
with
1 additions
and
0 deletions
yudao-module-system/yudao-module-system-biz/src/test/java/cn/iocoder/yudao/module/system/service/oauth2/OAuth2TokenServiceImplTest.java
| ... | ... | @@ -134,6 +134,7 @@ public class OAuth2TokenServiceImplTest extends BaseDbAndRedisUnitTest { |
| 134 | 134 | // 调用,并断言 |
| 135 | 135 | assertServiceException(() -> oauth2TokenService.refreshAccessToken(refreshToken, clientId), |
| 136 | 136 | new ErrorCode(401, "刷新令牌已过期")); |
| 137 | + assertEquals(0, oauth2RefreshTokenMapper.selectCount()); | |
| 137 | 138 | } |
| 138 | 139 | |
| 139 | 140 | @Test | ... | ... |