mirror of
https://github.com/LamGC/ContentGrabbingJi.git
synced 2025-07-01 12:57:26 +00:00
[Optimize] CacheStore-API, Framework-API, Event, Common 补充多个单元测试类的文档注释;
[Optimize] CacheKeyTest, CollectionUtilsTest, EventUtilsTest, FactoryInfoTest 在类文档添加测试所针对的类;
This commit is contained in:
@ -20,6 +20,9 @@ package net.lamgc.cgj.bot.cache;
|
|||||||
import org.junit.Assert;
|
import org.junit.Assert;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see CacheKey
|
||||||
|
*/
|
||||||
public class CacheKeyTest {
|
public class CacheKeyTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -27,6 +27,9 @@ import java.lang.reflect.Method;
|
|||||||
import java.util.NoSuchElementException;
|
import java.util.NoSuchElementException;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see EventUtils
|
||||||
|
*/
|
||||||
public class EventUtilsTest {
|
public class EventUtilsTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -21,9 +21,11 @@ import net.lamgc.cgj.bot.cache.factory.*;
|
|||||||
import org.junit.Assert;
|
import org.junit.Assert;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see FactoryInfo
|
||||||
|
*/
|
||||||
public class FactoryInfoTest {
|
public class FactoryInfoTest {
|
||||||
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void analyticTest() {
|
public void analyticTest() {
|
||||||
FactoryInfo infoA = new FactoryInfo(FactoryInfoTestFactory.class);
|
FactoryInfo infoA = new FactoryInfo(FactoryInfoTestFactory.class);
|
||||||
|
@ -25,6 +25,9 @@ import java.util.Map;
|
|||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.concurrent.CopyOnWriteArraySet;
|
import java.util.concurrent.CopyOnWriteArraySet;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see CollectionUtils
|
||||||
|
*/
|
||||||
public class CollectionUtilsTest {
|
public class CollectionUtilsTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Reference in New Issue
Block a user