|
|
@@ -16,7 +16,6 @@ import java.util.List;
|
|
|
import static cn.hutool.core.util.RandomUtil.randomEle;
|
|
|
import static cn.iocoder.yudao.framework.test.core.util.AssertUtils.assertPojoEquals;
|
|
|
import static cn.iocoder.yudao.framework.test.core.util.RandomUtils.*;
|
|
|
-import static java.util.Collections.emptyList;
|
|
|
import static org.junit.jupiter.api.Assertions.*;
|
|
|
import static org.mockito.ArgumentMatchers.eq;
|
|
|
import static org.mockito.Mockito.when;
|
|
|
@@ -135,13 +134,6 @@ public class OAuth2GrantServiceImplTest extends BaseMockitoUnitTest {
|
|
|
refreshToken, clientId));
|
|
|
}
|
|
|
|
|
|
- @Test
|
|
|
- public void testGrantClientCredentials() {
|
|
|
- assertThrows(UnsupportedOperationException.class,
|
|
|
- () -> oauth2GrantService.grantClientCredentials(randomString(), emptyList()),
|
|
|
- "暂时不支持 client_credentials 授权模式");
|
|
|
- }
|
|
|
-
|
|
|
@Test
|
|
|
public void testRevokeToken_clientIdError() {
|
|
|
// 准备参数
|