Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oto
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
龚小红
oto
Commits
d54fc86f
Commit
d54fc86f
authored
Nov 03, 2021
by
龚小红
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改支付价格校验
parent
300ec162
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Cashback.java
src/test/java/com/kjj/cases/assistant/pay/Cashback.java
+1
-1
Pay.java
src/test/java/com/kjj/cases/assistant/pay/Pay.java
+1
-1
No files found.
src/test/java/com/kjj/cases/assistant/pay/Cashback.java
View file @
d54fc86f
...
...
@@ -52,7 +52,7 @@ public class Cashback implements Authorization {
comboId
=
actualPayMoneyResponse
.
jsonPath
().
getString
(
"data[0].id"
);
Assert
.
assertNotNull
(
comboId
,
network
.
message
(
PAY_combo
,
"套餐ID为null"
,
actualPayMoneyResponse
.
body
().
asString
()));
String
actualPayMoney
=
actualPayMoneyResponse
.
jsonPath
().
getString
(
"data[0].actualPayMoney"
);
Assert
.
assertEquals
(
actualPayMoney
,
"
365
"
,
network
.
message
(
PAY_combo
,
"获取付费价格:价格不是365"
,
actualPayMoneyResponse
.
body
().
asString
()));
Assert
.
assertEquals
(
actualPayMoney
,
"
0.01
"
,
network
.
message
(
PAY_combo
,
"获取付费价格:价格不是365"
,
actualPayMoneyResponse
.
body
().
asString
()));
//创建支付
Map
<
String
,
Object
>
payParams
=
new
HashMap
<
String
,
Object
>();
...
...
src/test/java/com/kjj/cases/assistant/pay/Pay.java
View file @
d54fc86f
...
...
@@ -54,7 +54,7 @@ public class Pay implements Authorization {
comboId
=
actualPayMoneyResponse
.
jsonPath
().
getString
(
"data[0].id"
);
Assert
.
assertNotNull
(
comboId
,
network
.
message
(
PAY_combo
,
"套餐ID为null"
,
actualPayMoneyResponse
.
body
().
asString
()));
String
actualPayMoney
=
actualPayMoneyResponse
.
jsonPath
().
getString
(
"data[0].actualPayMoney"
);
Assert
.
assertEquals
(
actualPayMoney
,
"
365
"
,
network
.
message
(
PAY_combo
,
"获取付费价格:价格不是365"
,
actualPayMoneyResponse
.
body
().
asString
()));
Assert
.
assertEquals
(
actualPayMoney
,
"
0.01
"
,
network
.
message
(
PAY_combo
,
"获取付费价格:价格不是365"
,
actualPayMoneyResponse
.
body
().
asString
()));
}
...
...
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