Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
platform
/
platform-charging-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 4db36a7a
authored
Nov 07, 2023
by
谢海旭
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]调整 test
1 parent
7d9c581a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
17 deletions
platform-charging/src/test/java/cn/com/glsx/charging/gbt/ocpp16/ParamSettingTest.java
platform-charging/src/test/java/cn/com/glsx/charging/gbt/ocpp16/TimeSettingTest.java
platform-charging/src/test/java/cn/com/glsx/charging/gbt/ocpp16/ParamSettingTest.java
View file @
4db36a7
...
@@ -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
;
p
ublic
void
serverStart
()
throws
Exception
{
p
rivate
void
serverStart
()
throws
Exception
{
// 启动服务端
// 启动服务端
ServerMain
.
start
(
host
,
port
);
ServerMain
.
start
(
host
,
port
);
Thread
.
sleep
(
1
0
000
);
Thread
.
sleep
(
1
5
000
);
}
}
@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
()
{
...
...
platform-charging/src/test/java/cn/com/glsx/charging/gbt/ocpp16/TimeSettingTest.java
View file @
4db36a7
...
@@ -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
;
p
ublic
void
serverStart
()
throws
Exception
{
p
rivate
void
serverStart
()
throws
Exception
{
// 启动服务端
// 启动服务端
ServerMain
.
start
(
host
,
port
);
ServerMain
.
start
(
host
,
port
);
Thread
.
sleep
(
1
0
000
);
Thread
.
sleep
(
1
5
000
);
}
}
@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
()
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment