diff --git a/README.adoc b/README.adoc index f9c02c78b8..ff731e6ca4 100644 --- a/README.adoc +++ b/README.adoc @@ -329,7 +329,7 @@ image::doc/image/jb_beam.png[jb_beam,100,100,link=https://www.jetbrains.com/comm [width=100%] |=== |时间 |网名 |赞助 |备注 -|2024/12/08 |t* |¥49.00 |无 +|2024/12/08 |t* |¥199.00 |无 |2024/12/02 |'c* |¥399.00 |无 |2024/11/25 |tio* |¥520.00 |希望KCloud飞起,实现专精特新! |2024/08/01 |*ckai |¥88.00 |加油~ diff --git a/laokou-service/laokou-auth/laokou-auth-start/src/test/java/org/laokou/auth/InstantTest.java b/laokou-service/laokou-auth/laokou-auth-start/src/test/java/org/laokou/auth/InstantTest.java new file mode 100644 index 0000000000..7886e4f647 --- /dev/null +++ b/laokou-service/laokou-auth/laokou-auth-start/src/test/java/org/laokou/auth/InstantTest.java @@ -0,0 +1,37 @@ +/* + * Copyright (c) 2022-2024 KCloud-Platform-IoT Author or Authors. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +package org.laokou.auth; + +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; +import java.time.Instant; + +/** + * @author laokou + */ +@Data +@NoArgsConstructor +@AllArgsConstructor +class InstantTest implements Serializable { + + private Instant instant; + +} diff --git a/laokou-service/laokou-auth/laokou-auth-start/src/test/java/org/laokou/auth/OAuth2ApiTest.java b/laokou-service/laokou-auth/laokou-auth-start/src/test/java/org/laokou/auth/OAuth2ApiTest.java index 5b83082caf..96a8e45e9f 100644 --- a/laokou-service/laokou-auth/laokou-auth-start/src/test/java/org/laokou/auth/OAuth2ApiTest.java +++ b/laokou-service/laokou-auth/laokou-auth-start/src/test/java/org/laokou/auth/OAuth2ApiTest.java @@ -17,7 +17,8 @@ package org.laokou.auth; -import lombok.*; +import lombok.RequiredArgsConstructor; +import lombok.SneakyThrows; import lombok.extern.slf4j.Slf4j; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeEach; @@ -25,7 +26,10 @@ import org.laokou.auth.dto.TokenRemoveCmd; import org.laokou.auth.gateway.CaptchaGateway; import org.laokou.common.core.annotation.EnableTaskExecutor; -import org.laokou.common.core.utils.*; +import org.laokou.common.core.utils.HttpUtil; +import org.laokou.common.core.utils.IdGenerator; +import org.laokou.common.core.utils.MDCUtil; +import org.laokou.common.core.utils.ThreadUtil; import org.laokou.common.crypto.utils.RSAUtil; import org.laokou.common.i18n.utils.DateUtil; import org.laokou.common.i18n.utils.JacksonUtil; @@ -43,9 +47,7 @@ import org.springframework.util.Assert; import org.springframework.web.client.RestClient; -import java.io.Serializable; import java.net.URI; -import java.time.Instant; import java.util.Collections; import java.util.Map; import java.util.concurrent.ExecutorService; @@ -226,13 +228,6 @@ void testLogoutApi() { log.info("---------- 登录已注销,结束令牌清除 ----------"); } - @Test - void testRemoveCache() { - MDCUtil.put("0", "0"); - // rocketMQDomainEventPublisher.publish(new RemoveCacheEvent(TENANTS, "1"), - // SendMessageType.ASYNC); - } - private Map deviceAuthorizationCodeAuth(String deviceCode) { try { String apiUrl = getOAuthApiUrl(); @@ -421,13 +416,4 @@ private boolean disabledSsl() { return serverProperties.getSsl().isEnabled(); } - @Data - @NoArgsConstructor - @AllArgsConstructor - static class InstantTest implements Serializable { - - private Instant instant; - - } - }