Commit 4db36a7a by 谢海旭

[+]调整 test

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