|
@@ -0,0 +1,34 @@
|
|
|
|
|
+package space.anyi.openapisdk.config;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+import org.junit.jupiter.api.Test;
|
|
|
|
|
+import org.springframework.boot.test.context.SpringBootTest;
|
|
|
|
|
+import space.anyi.client.OpenAPIClient;
|
|
|
|
|
+
|
|
|
|
|
+import javax.annotation.Resource;
|
|
|
|
|
+
|
|
|
|
|
+/**
|
|
|
|
|
+ * @ProjectName: open-api-sdk
|
|
|
|
|
+ * @FileName: MyAutoConfigTest
|
|
|
|
|
+ * @Author: 杨逸
|
|
|
|
|
+ * @Data:2025/10/18 15:39
|
|
|
|
|
+ * @Description:
|
|
|
|
|
+ */
|
|
|
|
|
+//从指定类开始测试
|
|
|
|
|
+@SpringBootTest(classes = {MyAutoConfig.class})
|
|
|
|
|
+class MyAutoConfigTest {
|
|
|
|
|
+ @Resource
|
|
|
|
|
+ OpenAPIClient client;
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 测试自定义的starter是否可用
|
|
|
|
|
+ * @description:
|
|
|
|
|
+ * @author: 杨逸
|
|
|
|
|
+ * @data:2025/10/18 15:40:44
|
|
|
|
|
+ * @since 1.0.0
|
|
|
|
|
+ */
|
|
|
|
|
+ @Test
|
|
|
|
|
+ public void test(){
|
|
|
|
|
+ client.handler("测试自定义的starter是否可用");
|
|
|
|
|
+ }
|
|
|
|
|
+}
|