mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-13 18:16:28 +00:00
test[zfoo]: skip test in net and orm
This commit is contained in:
1 parent
3f892de146
commit
e5eed6b746
13 files changed
+11
-32
No files matched your search
@@ -15,7 +15,6 @@ package com.zfoo.event;
|
||||
|
||||
import com.zfoo.event.manager.EventBus;
|
||||
import com.zfoo.protocol.util.ThreadUtils;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
import org.springframework.context.support.ClassPathXmlApplicationContext;
|
||||
|
||||
@@ -23,7 +22,6 @@ import org.springframework.context.support.ClassPathXmlApplicationContext;
|
||||
* @author godotg
|
||||
* @version 3.0
|
||||
*/
|
||||
@Ignore
|
||||
public class ApplicationTest {
|
||||
|
||||
// Event Bus tutorial, the core idea is the observer pattern.(核心思想是设计模式中的观察者模式)
|
||||
@@ -35,7 +33,7 @@ public class ApplicationTest {
|
||||
// see receiver method of MyController1 and MyController2
|
||||
EventBus.post(MyNoticeEvent.valueOf("我的事件"));
|
||||
|
||||
ThreadUtils.sleep(3000);
|
||||
ThreadUtils.sleep(1000);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -3,7 +3,6 @@ package com.zfoo.hotswap;
|
||||
import com.zfoo.hotswap.util.HotSwapUtils;
|
||||
import com.zfoo.protocol.util.ClassUtils;
|
||||
import com.zfoo.protocol.util.IOUtils;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
import java.io.IOException;
|
||||
@@ -11,7 +10,6 @@ import java.io.IOException;
|
||||
/**
|
||||
* @author godotg
|
||||
*/
|
||||
@Ignore
|
||||
public class ApplicationTest {
|
||||
|
||||
// 热更新教程,需要添加JVM参数,-Djdk.attach.allowAttachSelf=true,如果不加这个参数将使用Byte Buddy热更新替代Javassist热更新
|
||||
|
||||
@@ -18,7 +18,6 @@ import com.zfoo.monitor.util.OSUtils;
|
||||
import com.zfoo.protocol.util.JsonUtils;
|
||||
import com.zfoo.protocol.util.ThreadUtils;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
import oshi.SystemInfo;
|
||||
|
||||
@@ -26,7 +25,6 @@ import oshi.SystemInfo;
|
||||
* @author godotg
|
||||
* @version 3.0
|
||||
*/
|
||||
@Ignore
|
||||
public class ApplicationTest {
|
||||
|
||||
/**
|
||||
@@ -76,14 +74,13 @@ public class ApplicationTest {
|
||||
/**
|
||||
* cpu的tick大小测试
|
||||
*/
|
||||
@Ignore
|
||||
@Test
|
||||
public void cpuTest() {
|
||||
var systemInfo = new SystemInfo();
|
||||
var hardware = systemInfo.getHardware();
|
||||
var os = systemInfo.getOperatingSystem();
|
||||
|
||||
while (true) {
|
||||
for (int i = 0; i < 5; i++) {
|
||||
var oldTicks = hardware.getProcessor().getSystemCpuLoadTicks();
|
||||
ThreadUtils.sleep(1000);
|
||||
var usage = hardware.getProcessor().getSystemCpuLoadBetweenTicks(oldTicks);
|
||||
@@ -91,15 +88,6 @@ public class ApplicationTest {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 控制台指令执行测试
|
||||
*/
|
||||
@Ignore
|
||||
@Test
|
||||
public void execCommandTest() {
|
||||
var str = OSUtils.execCommand("cmd /c jps");
|
||||
System.out.println(str);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void toPercentTest() {
|
||||
|
||||
@@ -206,6 +206,7 @@
|
||||
<configuration>
|
||||
<threadCount>8</threadCount>
|
||||
<argLine>-Dfile.encoding=${file.encoding}</argLine>
|
||||
<skipTests>true</skipTests>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
|
||||
@@ -161,6 +161,7 @@
|
||||
<configuration>
|
||||
<threadCount>8</threadCount>
|
||||
<argLine>-Dfile.encoding=${file.encoding}</argLine>
|
||||
<skipTests>true</skipTests>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
|
||||
@@ -197,9 +197,6 @@
|
||||
<configuration>
|
||||
<threadCount>8</threadCount>
|
||||
<argLine>-Dfile.encoding=${file.encoding}</argLine>
|
||||
<includes>
|
||||
<include>*/*Test.java</include>
|
||||
</includes>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
package com.zfoo.scheduler;
|
||||
|
||||
import com.zfoo.protocol.util.ThreadUtils;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
import org.springframework.context.support.ClassPathXmlApplicationContext;
|
||||
|
||||
@@ -26,7 +25,6 @@ import org.springframework.context.support.ClassPathXmlApplicationContext;
|
||||
* @version 3.0
|
||||
*/
|
||||
|
||||
@Ignore
|
||||
public class ApplicationTest {
|
||||
|
||||
@Test
|
||||
@@ -34,7 +32,7 @@ public class ApplicationTest {
|
||||
// 加载配置文件,配置文件中必须引入scheduler
|
||||
var context = new ClassPathXmlApplicationContext("application.xml");
|
||||
|
||||
ThreadUtils.sleep(Long.MAX_VALUE);
|
||||
ThreadUtils.sleep(10000);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -17,7 +17,6 @@ import com.zfoo.protocol.util.AssertionUtils;
|
||||
import com.zfoo.protocol.util.JsonUtils;
|
||||
import com.zfoo.protocol.util.StringUtils;
|
||||
import com.zfoo.storage.resource.StudentResource;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
@@ -30,7 +29,6 @@ import java.util.Map;
|
||||
* @version 3.0
|
||||
*/
|
||||
|
||||
@Ignore
|
||||
public class ApplicationTest {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(ApplicationTest.class);
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@ import java.util.Iterator;
|
||||
* @version 3.0
|
||||
*/
|
||||
@Ignore
|
||||
public class ExcelTest {
|
||||
public class ExcelTesting {
|
||||
|
||||
@Test
|
||||
public void createExcelTest() throws IOException {
|
||||
+1
-1
@@ -42,7 +42,7 @@ import java.util.Map;
|
||||
|
||||
|
||||
@Ignore
|
||||
public class ExportBinaryTest {
|
||||
public class ExportBinaryTesting {
|
||||
|
||||
public static class User {
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@ import java.io.IOException;
|
||||
* @version 3.0
|
||||
*/
|
||||
@Ignore
|
||||
public class ExportCsvTest {
|
||||
public class ExportCsvTesting {
|
||||
|
||||
@Test
|
||||
public void exportTest() throws Exception {
|
||||
+1
-1
@@ -21,7 +21,7 @@ import org.junit.Test;
|
||||
* @version 3.0
|
||||
*/
|
||||
@Ignore
|
||||
public class ExportJsonTest {
|
||||
public class ExportJsonTesting {
|
||||
|
||||
@Test
|
||||
public void test() throws Exception {
|
||||
+2
-2
@@ -26,12 +26,12 @@ import java.io.IOException;
|
||||
* @version 3.0
|
||||
*/
|
||||
@Ignore
|
||||
public class PathMatchTest {
|
||||
public class PathMatchTesting {
|
||||
|
||||
@Test
|
||||
public void resourceTest() throws IOException {
|
||||
ResourcePatternResolver resolver = new PathMatchingResourcePatternResolver();
|
||||
Resource[] resources = resolver.getResources("classpath*:com/zfoo/**/*.class");
|
||||
Resource[] resources = resolver.getResources("classpath*:com/zfoo/storage/**/*.class");
|
||||
for (Resource res : resources) {
|
||||
System.out.println(res.getDescription());
|
||||
}
|
||||
Reference in new issue
Block a user