Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xm-sportstest
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiamai-test
xm-sportstest
Commits
bd36e27c
Commit
bd36e27c
authored
Mar 13, 2025
by
xyy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
case优化
parent
a5a7b901
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
src/main/java/com/xiaomai/cases/polar/config/TestGetTenantSmsRecordDetail.java
+10
-2
No files found.
src/main/java/com/xiaomai/cases/polar/config/TestGetTenantSmsRecordDetail.java
View file @
bd36e27c
...
...
@@ -43,7 +43,14 @@ public class TestGetTenantSmsRecordDetail extends XMBaseTest {
//调用请求
xmAppApi
.
doRequest
(
RequestType
.
JSON
,
params
,
object
.
toJSONString
(),
headers
).
assetsSuccess
(
false
);
JSONObject
response
=
xmAppApi
.
getBodyInJSON
();
//因未充值,检验失败
Assert
.
assertEquals
(
XMJSONPath
.
readPath
(
response
,
"$.message"
),
"校验失败"
);
String
code
=
XMJSONPath
.
readPath
(
response
,
"$.code"
);
switch
(
code
){
case
"500"
:
Assert
.
assertEquals
(
XMJSONPath
.
readPath
(
response
,
"$.message"
),
"ILLEGAL_ARGUMENT"
);
break
;
default
:
//因未充值,检验失败
Assert
.
assertEquals
(
XMJSONPath
.
readPath
(
response
,
"$.message"
),
"校验失败"
);
}
}
}
\ No newline at end of file
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