From 561dd58611427fef51f011a1c4a8dfd3cec4e708 Mon Sep 17 00:00:00 2001 From: LamGC Date: Sat, 21 Nov 2020 11:06:22 +0800 Subject: [PATCH] =?UTF-8?q?[Optimize]=20CacheStore-API,=20Framework-API,?= =?UTF-8?q?=20Event,=20Common=20=E8=A1=A5=E5=85=85=E5=A4=9A=E4=B8=AA?= =?UTF-8?q?=E5=8D=95=E5=85=83=E6=B5=8B=E8=AF=95=E7=B1=BB=E7=9A=84=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E6=B3=A8=E9=87=8A;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [Optimize] CacheKeyTest, CollectionUtilsTest, EventUtilsTest, FactoryInfoTest 在类文档添加测试所针对的类; --- .../src/test/java/net/lamgc/cgj/bot/cache/CacheKeyTest.java | 3 +++ .../src/test/java/net/lamgc/cgj/bot/event/EventUtilsTest.java | 3 +++ .../test/java/net/lamgc/cgj/bot/cache/FactoryInfoTest.java | 4 +++- .../net/lamgc/cgj/bot/framework/util/CollectionUtilsTest.java | 3 +++ 4 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ContentGrabbingJi-CacheStore-api/src/test/java/net/lamgc/cgj/bot/cache/CacheKeyTest.java b/ContentGrabbingJi-CacheStore-api/src/test/java/net/lamgc/cgj/bot/cache/CacheKeyTest.java index 7ea237d..c4a86a6 100644 --- a/ContentGrabbingJi-CacheStore-api/src/test/java/net/lamgc/cgj/bot/cache/CacheKeyTest.java +++ b/ContentGrabbingJi-CacheStore-api/src/test/java/net/lamgc/cgj/bot/cache/CacheKeyTest.java @@ -20,6 +20,9 @@ package net.lamgc.cgj.bot.cache; import org.junit.Assert; import org.junit.Test; +/** + * @see CacheKey + */ public class CacheKeyTest { @Test diff --git a/ContentGrabbingJi-Event/src/test/java/net/lamgc/cgj/bot/event/EventUtilsTest.java b/ContentGrabbingJi-Event/src/test/java/net/lamgc/cgj/bot/event/EventUtilsTest.java index 32fbe17..7bcc86f 100644 --- a/ContentGrabbingJi-Event/src/test/java/net/lamgc/cgj/bot/event/EventUtilsTest.java +++ b/ContentGrabbingJi-Event/src/test/java/net/lamgc/cgj/bot/event/EventUtilsTest.java @@ -27,6 +27,9 @@ import java.lang.reflect.Method; import java.util.NoSuchElementException; import java.util.UUID; +/** + * @see EventUtils + */ public class EventUtilsTest { @Test diff --git a/ContentGrabbingJi-common/src/test/java/net/lamgc/cgj/bot/cache/FactoryInfoTest.java b/ContentGrabbingJi-common/src/test/java/net/lamgc/cgj/bot/cache/FactoryInfoTest.java index dff662b..77cdbcc 100644 --- a/ContentGrabbingJi-common/src/test/java/net/lamgc/cgj/bot/cache/FactoryInfoTest.java +++ b/ContentGrabbingJi-common/src/test/java/net/lamgc/cgj/bot/cache/FactoryInfoTest.java @@ -21,9 +21,11 @@ import net.lamgc.cgj.bot.cache.factory.*; import org.junit.Assert; import org.junit.Test; +/** + * @see FactoryInfo + */ public class FactoryInfoTest { - @Test public void analyticTest() { FactoryInfo infoA = new FactoryInfo(FactoryInfoTestFactory.class); diff --git a/ContentGrabbingJi-framework-api/src/test/java/net/lamgc/cgj/bot/framework/util/CollectionUtilsTest.java b/ContentGrabbingJi-framework-api/src/test/java/net/lamgc/cgj/bot/framework/util/CollectionUtilsTest.java index d7e0a12..8309ec5 100644 --- a/ContentGrabbingJi-framework-api/src/test/java/net/lamgc/cgj/bot/framework/util/CollectionUtilsTest.java +++ b/ContentGrabbingJi-framework-api/src/test/java/net/lamgc/cgj/bot/framework/util/CollectionUtilsTest.java @@ -25,6 +25,9 @@ import java.util.Map; import java.util.Set; import java.util.concurrent.CopyOnWriteArraySet; +/** + * @see CollectionUtils + */ public class CollectionUtilsTest { @Test