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
fc083b7b
Commit
fc083b7b
authored
Jul 03, 2024
by
yangfangfang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单
parent
52376a5f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/main/java/com/xiaomai/cases/polar/finance/order/TestRefundOrder.java
+5
-5
No files found.
src/main/java/com/xiaomai/cases/polar/finance/order/TestRefundOrder.java
View file @
fc083b7b
...
...
@@ -138,7 +138,7 @@ public class TestRefundOrder extends XMBaseTest {
memberId
,
price
-
price
/
2
,
price
-
price
/
2
,
"1"
);
String
refundOrderSuccess
=
refundOrderResult
.
getString
(
"success"
);
String
refundOrderGetDetailId
=
o
rderResult
.
getString
(
"result"
);
String
refundOrderGetDetailId
=
refundO
rderResult
.
getString
(
"result"
);
Assert
.
assertEquals
(
refundOrderSuccess
,
"true"
,
"创建退单订单失败"
);
...
...
@@ -149,21 +149,21 @@ public class TestRefundOrder extends XMBaseTest {
}
//获取订单详情
JSONObject
getDetailResult
=
orderTools
.
getDetail
(
g
etDetailId
);
JSONObject
getDetailResult
=
orderTools
.
getDetail
(
refundOrderG
etDetailId
);
String
id
=
getDetailResult
.
getJSONObject
(
"result"
).
getString
(
"id"
);
String
businessNo
=
getDetailResult
.
getJSONObject
(
"result"
).
getString
(
"businessNo"
);
//退单订单的businessNo
String
state
=
getDetailResult
.
getJSONObject
(
"result"
).
getString
(
"state"
);
Assert
.
assertEquals
(
id
.
equals
(
g
etDetailId
),
true
,
"获取创建的退单订单详情失败"
);
Assert
.
assertEquals
(
id
.
equals
(
refundOrderG
etDetailId
),
true
,
"获取创建的退单订单详情失败"
);
Assert
.
assertEquals
(
state
,
"PAID"
,
"获取创建的退单订单未完成"
);
//获取订单支付记录
JSONObject
listByVoucherIdResult
=
orderTools
.
listByVoucherId
(
g
etDetailId
);
JSONObject
listByVoucherIdResult
=
orderTools
.
listByVoucherId
(
refundOrderG
etDetailId
);
String
listByVoucherId
=
listByVoucherIdResult
.
getJSONArray
(
"result"
).
getJSONObject
(
0
).
getString
(
"voucherId"
);
//退单订单的id
String
paymentWayId
=
listByVoucherIdResult
.
getJSONArray
(
"result"
).
getJSONObject
(
0
).
getJSONObject
(
"paymentWay"
).
getString
(
"id"
);
String
listByVoucherState
=
listByVoucherIdResult
.
getJSONArray
(
"result"
).
getJSONObject
(
0
).
getString
(
"state"
);
String
id1
=
listByVoucherIdResult
.
getJSONArray
(
"result"
).
getJSONObject
(
0
).
getString
(
"id"
);
//收支的id
Assert
.
assertEquals
(
listByVoucherId
.
equals
(
g
etDetailId
),
true
,
"获取创建的退单订单的支付记录失败"
);
Assert
.
assertEquals
(
listByVoucherId
.
equals
(
refundOrderG
etDetailId
),
true
,
"获取创建的退单订单的支付记录失败"
);
Assert
.
assertEquals
(
listByVoucherState
,
"NORMAL"
,
"获取创建的退单订单的支付记录状态未是已完成"
);
...
...
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