Commit 4db36a7a by 谢海旭

[+]调整 test

1 parent 7d9c581a
...@@ -8,8 +8,6 @@ import cn.com.glsx.charging.modules.gbt.ocpp16.tcp.server.ProxyHelper; ...@@ -8,8 +8,6 @@ import cn.com.glsx.charging.modules.gbt.ocpp16.tcp.server.ProxyHelper;
import cn.com.glsx.charging.modules.gbt.ocpp16.tcp.server.ProxyInfo; import cn.com.glsx.charging.modules.gbt.ocpp16.tcp.server.ProxyInfo;
import org.junit.Test; import org.junit.Test;
import java.util.Scanner;
/** /**
* @Title: * @Title:
* @Description: * @Description:
...@@ -21,10 +19,10 @@ public class ParamSettingTest { ...@@ -21,10 +19,10 @@ public class ParamSettingTest {
String host = "127.0.0.1"; String host = "127.0.0.1";
int port = 8888; int port = 8888;
public void serverStart() throws Exception{ private void serverStart() throws Exception{
// 启动服务端 // 启动服务端
ServerMain.start(host, port); ServerMain.start(host, port);
Thread.sleep(10000); Thread.sleep(15000);
} }
@Test @Test
...@@ -32,11 +30,7 @@ public class ParamSettingTest { ...@@ -32,11 +30,7 @@ public class ParamSettingTest {
serverStart(); serverStart();
// 充电桩工作参数设置 // 充电桩工作参数设置
setParam(); setParam();
Scanner scanner = new Scanner(System.in); Thread.sleep(20000);
while (true) {
System.out.println("Enter message (e.g., 'message'): ");
String message = scanner.nextLine();
}
} }
private void setParam() { private void setParam() {
......
...@@ -12,7 +12,6 @@ import cn.hutool.core.util.HexUtil; ...@@ -12,7 +12,6 @@ import cn.hutool.core.util.HexUtil;
import org.junit.Test; import org.junit.Test;
import java.util.Date; import java.util.Date;
import java.util.Scanner;
/** /**
* @Title: * @Title:
...@@ -25,10 +24,10 @@ public class TimeSettingTest { ...@@ -25,10 +24,10 @@ public class TimeSettingTest {
String host = "127.0.0.1"; String host = "127.0.0.1";
int port = 8888; int port = 8888;
public void serverStart() throws Exception { private void serverStart() throws Exception {
// 启动服务端 // 启动服务端
ServerMain.start(host, port); ServerMain.start(host, port);
Thread.sleep(10000); Thread.sleep(15000);
} }
@Test @Test
...@@ -36,11 +35,7 @@ public class TimeSettingTest { ...@@ -36,11 +35,7 @@ public class TimeSettingTest {
serverStart(); serverStart();
// 对时设置 // 对时设置
setTime(); setTime();
Scanner scanner = new Scanner(System.in); Thread.sleep(20000);
while (true) {
System.out.println("Enter message (e.g., 'message'): ");
String message = scanner.nextLine();
}
} }
private void setTime() { private void setTime() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!