Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
szpt
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
以墨为白
szpt
Commits
c0f40a19
Commit
c0f40a19
authored
Jan 09, 2025
by
wangjinjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
备注
parent
0feada1f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
11 deletions
+8
-11
src/test/java/com/zksy/szpt/MainTest.java
src/test/java/com/zksy/szpt/MainTest.java
+8
-11
No files found.
src/test/java/com/zksy/szpt/MainTest.java
View file @
c0f40a19
...
...
@@ -88,8 +88,8 @@ public class MainTest {
* 任务完成情况
*/
@Test
@DisplayName
(
"
任务完成情况
"
)
public
void
xxRwwcqkTest1
()
{
@DisplayName
(
"
账户信息
"
)
public
void
zhxxtest
()
{
timestampStr
=
String
.
valueOf
(
System
.
currentTimeMillis
()
/
1000
);
nonce
=
String
.
valueOf
(
System
.
currentTimeMillis
()
/
1000
);
String
secretKey
=
this
.
appStoreService
.
getAppSecretByAppKey
(
appId
);
...
...
@@ -133,7 +133,7 @@ public class MainTest {
* 任务完成情况
*/
@Test
@DisplayName
(
"
任务完成情况
"
)
@DisplayName
(
"
账户积分变更
"
)
public
void
test1
()
{
timestampStr
=
String
.
valueOf
(
System
.
currentTimeMillis
()
/
1000
);
nonce
=
String
.
valueOf
(
System
.
currentTimeMillis
()
/
1000
);
...
...
@@ -222,7 +222,7 @@ public class MainTest {
* 任务完成情况
*/
@Test
@DisplayName
(
"
任务完成情况
"
)
@DisplayName
(
"
义警任务
"
)
public
void
test4
()
{
timestampStr
=
String
.
valueOf
(
System
.
currentTimeMillis
()
/
1000
);
nonce
=
String
.
valueOf
(
System
.
currentTimeMillis
()
/
1000
);
...
...
@@ -270,7 +270,7 @@ public class MainTest {
* 任务完成情况
*/
@Test
@DisplayName
(
"
任务完成情况
"
)
@DisplayName
(
"
义警队伍代码
"
)
public
void
test5
()
{
timestampStr
=
String
.
valueOf
(
System
.
currentTimeMillis
()
/
1000
);
nonce
=
String
.
valueOf
(
System
.
currentTimeMillis
()
/
1000
);
...
...
@@ -314,7 +314,7 @@ public class MainTest {
}
@Test
@DisplayName
(
"
任务完成情况
"
)
@DisplayName
(
"
社会信息员队伍
"
)
public
void
test6
()
{
timestampStr
=
String
.
valueOf
(
System
.
currentTimeMillis
()
/
1000
);
nonce
=
String
.
valueOf
(
System
.
currentTimeMillis
()
/
1000
);
...
...
@@ -354,7 +354,7 @@ public class MainTest {
}
@Test
@DisplayName
(
"
任务完成情况
"
)
@DisplayName
(
"
社会信息员
"
)
public
void
test7
()
{
timestampStr
=
String
.
valueOf
(
System
.
currentTimeMillis
()
/
1000
);
nonce
=
String
.
valueOf
(
System
.
currentTimeMillis
()
/
1000
);
...
...
@@ -396,16 +396,13 @@ public class MainTest {
@Test
@DisplayName
(
"
任务完成情况
"
)
@DisplayName
(
"
删除服务
"
)
public
void
testdelete
()
{
timestampStr
=
String
.
valueOf
(
System
.
currentTimeMillis
()
/
1000
);
nonce
=
String
.
valueOf
(
System
.
currentTimeMillis
()
/
1000
);
String
secretKey
=
this
.
appStoreService
.
getAppSecretByAppKey
(
appId
);
Assertions
.
assertNotNull
(
secretKey
,
"appId不存在"
);
//断言appId存在,为空直接抛出异常不进行下一步测试,提高测试效率
//请求参数
String
number
=
"1"
;
String
[]
str
=
new
String
[
1
];
str
[
0
]
=
number
;
String
json
=
null
;
List
<
String
>
ids
=
new
ArrayList
<>();
ids
.
add
(
"1"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment