Sfoglia il codice sorgente

docs: 删除测试

ChenSiTong 6 anni fa
parent
commit
edf985c0dc
1 ha cambiato i file con 14 aggiunte e 19 eliminazioni
  1. 14 19
      src/test/java/nju/seec/helper/HelperApplicationTests.java

+ 14 - 19
src/test/java/nju/seec/helper/HelperApplicationTests.java

@@ -1,16 +1,11 @@
 package nju.seec.helper;
 
-import com.google.common.collect.ImmutableList;
 import lombok.SneakyThrows;
 import nju.seec.helper.util.cache.BaseCacheUtils;
 import org.junit.jupiter.api.Test;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.boot.test.context.SpringBootTest;
 
-import java.util.Map;
-import java.util.stream.Collectors;
-import java.util.stream.Stream;
-
 @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
 class HelperApplicationTests {
     @Autowired
@@ -22,19 +17,19 @@ class HelperApplicationTests {
 
     }
 
-    @Test
-    void testOne() {
-        System.out.println(cacheUtils.get("n", "123"));
-        cacheUtils.set("n", "123", "123456");
-        for (int i = 0; i < 10; i++)
-            System.out.println(cacheUtils.get("n", "123"));
-    }
-
-    @Test
-    void testAll() {
-        Map<String, Object> ids = Stream.of(1, 2, 3, 4, 5, 6).map(num -> num + "").collect(Collectors.toMap(key -> key, key -> key));
-        cacheUtils.setAll("test", ids);
-        System.out.println(cacheUtils.multiGet("test", ImmutableList.of("1", "2", "3")));
-    }
+//    @Test
+//    void testOne() {
+//        System.out.println(cacheUtils.get("n", "123"));
+//        cacheUtils.set("n", "123", "123456");
+//        for (int i = 0; i < 10; i++)
+//            System.out.println(cacheUtils.get("n", "123"));
+//    }
+
+//    @Test
+//    void testAll() {
+//        Map<String, Object> ids = Stream.of(1, 2, 3, 4, 5, 6).map(num -> num + "").collect(Collectors.toMap(key -> key, key -> key));
+//        cacheUtils.setAll("test", ids);
+//        System.out.println(cacheUtils.multiGet("test", ImmutableList.of("1", "2", "3")));
+//    }
 
 }