Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
test-platform
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
马博
test-platform
Commits
0db55571
Commit
0db55571
authored
May 30, 2019
by
赵然
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zr
parent
847cc1f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
自有活动出奖_DuibaTest.java
src/test/java/http/cases/DeveloperTest/自有活动出奖_DuibaTest.java
+6
-6
No files found.
src/test/java/http/cases/DeveloperTest/自有活动出奖_DuibaTest.java
View file @
0db55571
...
@@ -33,7 +33,7 @@ public class 自有活动出奖_DuibaTest extends DuibaTestBase {
...
@@ -33,7 +33,7 @@ public class 自有活动出奖_DuibaTest extends DuibaTestBase {
public
void
出奖自有实物
()
throws
Exception
{
public
void
出奖自有实物
()
throws
Exception
{
Map
map
=
jdbc
.
findSimpleResult
(
"select * from stock.tb_stock where stock_id = 674900849714500524"
);
Map
map
=
jdbc
.
findSimpleResult
(
"select * from stock.tb_stock where stock_id = 674900849714500524"
);
int
remaining
=
(
int
)
map
.
get
(
"stock"
);
long
remaining
=
(
long
)
map
.
get
(
"stock"
);
Response
response
=
newActivityService
.
doJoin2
(
"21803"
,
"h5ps61"
);
Response
response
=
newActivityService
.
doJoin2
(
"21803"
,
"h5ps61"
);
String
orderId
=
response
.
jsonPath
().
getString
(
"orderId"
);
String
orderId
=
response
.
jsonPath
().
getString
(
"orderId"
);
response
=
newActivityService
.
getOrderStatus2
(
orderId
);
response
=
newActivityService
.
getOrderStatus2
(
orderId
);
...
@@ -61,7 +61,7 @@ public class 自有活动出奖_DuibaTest extends DuibaTestBase {
...
@@ -61,7 +61,7 @@ public class 自有活动出奖_DuibaTest extends DuibaTestBase {
Thread
.
sleep
(
1000
);
Thread
.
sleep
(
1000
);
map
=
jdbc
.
findSimpleResult
(
"select * from stock.tb_stock where stock_id = 674900849714500524"
);
map
=
jdbc
.
findSimpleResult
(
"select * from stock.tb_stock where stock_id = 674900849714500524"
);
int
remainingNew
=
(
int
)
map
.
get
(
"stock"
);
long
remainingNew
=
(
long
)
map
.
get
(
"stock"
);
Assert
.
assertEquals
(
remaining
-
1
,
remainingNew
,
"扣库存失败"
);
Assert
.
assertEquals
(
remaining
-
1
,
remainingNew
,
"扣库存失败"
);
...
@@ -170,7 +170,7 @@ public class 自有活动出奖_DuibaTest extends DuibaTestBase {
...
@@ -170,7 +170,7 @@ public class 自有活动出奖_DuibaTest extends DuibaTestBase {
public
void
出奖自有虚拟商品
()
throws
Exception
{
public
void
出奖自有虚拟商品
()
throws
Exception
{
Map
map
=
jdbc
.
findSimpleResult
(
"select * from stock.tb_stock where stock_id = 674900860200070105"
);
Map
map
=
jdbc
.
findSimpleResult
(
"select * from stock.tb_stock where stock_id = 674900860200070105"
);
int
remaining
=
(
int
)
map
.
get
(
"stock"
);
long
remaining
=
(
long
)
map
.
get
(
"stock"
);
Response
response
=
newActivityService
.
doJoin2
(
"21793"
,
"h5ps61"
);
Response
response
=
newActivityService
.
doJoin2
(
"21793"
,
"h5ps61"
);
String
orderId
=
response
.
jsonPath
().
getString
(
"orderId"
);
String
orderId
=
response
.
jsonPath
().
getString
(
"orderId"
);
response
=
newActivityService
.
getOrderStatus2
(
orderId
);
response
=
newActivityService
.
getOrderStatus2
(
orderId
);
...
@@ -198,7 +198,7 @@ public class 自有活动出奖_DuibaTest extends DuibaTestBase {
...
@@ -198,7 +198,7 @@ public class 自有活动出奖_DuibaTest extends DuibaTestBase {
Thread
.
sleep
(
1000
);
Thread
.
sleep
(
1000
);
map
=
jdbc
.
findSimpleResult
(
"select * from stock.tb_stock where stock_id = 674900860200070105"
);
map
=
jdbc
.
findSimpleResult
(
"select * from stock.tb_stock where stock_id = 674900860200070105"
);
int
remainingNew
=
(
int
)
map
.
get
(
"stock"
);
long
remainingNew
=
(
long
)
map
.
get
(
"stock"
);
Assert
.
assertEquals
(
remaining
-
1
,
remainingNew
,
"扣库存失败"
);
Assert
.
assertEquals
(
remaining
-
1
,
remainingNew
,
"扣库存失败"
);
}
}
...
@@ -206,7 +206,7 @@ public class 自有活动出奖_DuibaTest extends DuibaTestBase {
...
@@ -206,7 +206,7 @@ public class 自有活动出奖_DuibaTest extends DuibaTestBase {
@Test
@Test
public
void
出奖兑吧实物
()
throws
Exception
{
public
void
出奖兑吧实物
()
throws
Exception
{
Map
map
=
jdbc
.
findSimpleResult
(
"select * from stock.tb_stock where stock_id = 674900440770170322 "
);
Map
map
=
jdbc
.
findSimpleResult
(
"select * from stock.tb_stock where stock_id = 674900440770170322 "
);
int
remaining
=
(
int
)
map
.
get
(
"stock"
);
long
remaining
=
(
long
)
map
.
get
(
"stock"
);
Response
response
=
newActivityService
.
doJoin2
(
"22637"
,
"h5ps61"
);
Response
response
=
newActivityService
.
doJoin2
(
"22637"
,
"h5ps61"
);
String
orderId
=
response
.
jsonPath
().
getString
(
"orderId"
);
String
orderId
=
response
.
jsonPath
().
getString
(
"orderId"
);
response
=
newActivityService
.
getOrderStatus2
(
orderId
);
response
=
newActivityService
.
getOrderStatus2
(
orderId
);
...
@@ -233,7 +233,7 @@ public class 自有活动出奖_DuibaTest extends DuibaTestBase {
...
@@ -233,7 +233,7 @@ public class 自有活动出奖_DuibaTest extends DuibaTestBase {
Thread
.
sleep
(
1000
);
Thread
.
sleep
(
1000
);
map
=
jdbc
.
findSimpleResult
(
"select * from stock.tb_stock where stock_id = 674900440770170322 "
);
map
=
jdbc
.
findSimpleResult
(
"select * from stock.tb_stock where stock_id = 674900440770170322 "
);
int
remainingNew
=
(
int
)
map
.
get
(
"stock"
);
long
remainingNew
=
(
long
)
map
.
get
(
"stock"
);
Assert
.
assertEquals
(
remaining
-
1
,
remainingNew
,
"扣库存失败"
);
Assert
.
assertEquals
(
remaining
-
1
,
remainingNew
,
"扣库存失败"
);
...
...
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