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
2cdd1fa9
Commit
2cdd1fa9
authored
Apr 02, 2019
by
马博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
ab240a96
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
MysqlConnPool.java
src/test/java/base/MysqlConnPool.java
+3
-0
商品订单失败测试_ExchangeTest.java
...t/java/http/cases/ExchangeTest/商品订单失败测试_ExchangeTest.java
+1
-1
No files found.
src/test/java/base/MysqlConnPool.java
View file @
2cdd1fa9
...
@@ -66,6 +66,7 @@ public class MysqlConnPool {
...
@@ -66,6 +66,7 @@ public class MysqlConnPool {
* @throws SQLException
* @throws SQLException
*/
*/
public
Map
<
String
,
Object
>
findSimpleResult
(
String
sql
,
Object
...
params
)
throws
SQLException
{
public
Map
<
String
,
Object
>
findSimpleResult
(
String
sql
,
Object
...
params
)
throws
SQLException
{
log
.
info
(
"findSimpleResult开始~~~~~~~~~~~~~~~~~~~~~"
);
Map
<
String
,
Object
>
map
=
null
;
Map
<
String
,
Object
>
map
=
null
;
try
(
Connection
conn
=
bds
.
getConnection
()){
try
(
Connection
conn
=
bds
.
getConnection
()){
...
@@ -102,11 +103,13 @@ public class MysqlConnPool {
...
@@ -102,11 +103,13 @@ public class MysqlConnPool {
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
// e.printStackTrace();
// e.printStackTrace();
log
.
info
(
"findSimpleResult异常~~~~~~~~~~~~~~~~~~~~~"
);
log
.
info
(
"findSimpleResult"
+
e
.
toString
());
log
.
info
(
"findSimpleResult"
+
e
.
toString
());
log
.
info
(
"test"
);
log
.
info
(
"test"
);
log
.
info
(
"bds"
+
bds
.
toString
());
log
.
info
(
"bds"
+
bds
.
toString
());
}
}
log
.
info
(
"findSimpleResult结束~~~~~~~~~~~~~~~~~~~~~"
);
return
map
;
return
map
;
}
}
/**
/**
...
...
src/test/java/http/cases/ExchangeTest/商品订单失败测试_ExchangeTest.java
View file @
2cdd1fa9
...
@@ -277,7 +277,7 @@ public class 商品订单失败测试_ExchangeTest extends CheckTemplet {
...
@@ -277,7 +277,7 @@ public class 商品订单失败测试_ExchangeTest extends CheckTemplet {
String
orderStatus
=
String
.
valueOf
(
mapOrder
.
get
(
"status"
));
String
orderStatus
=
String
.
valueOf
(
mapOrder
.
get
(
"status"
));
String
orderError
=
String
.
valueOf
(
mapOrder
.
get
(
"error4consumer"
));
String
orderError
=
String
.
valueOf
(
mapOrder
.
get
(
"error4consumer"
));
Assert
.
assertEquals
(
statusResponse
.
jsonPath
().
getString
(
"message"
),
"
40004:Business Failed_PAYEE_NOT_EXIST:
收款账号不存在"
,
"校验message失败"
);
Assert
.
assertEquals
(
statusResponse
.
jsonPath
().
getString
(
"message"
),
"收款账号不存在"
,
"校验message失败"
);
Assert
.
assertEquals
(
orderStatus
,
"fail"
,
"校验数据库status失败"
);
Assert
.
assertEquals
(
orderStatus
,
"fail"
,
"校验数据库status失败"
);
Assert
.
assertEquals
(
orderError
,
"40004:Business Failed_PAYEE_NOT_EXIST:收款账号不存在"
,
"校验数据库error失败"
);
Assert
.
assertEquals
(
orderError
,
"40004:Business Failed_PAYEE_NOT_EXIST:收款账号不存在"
,
"校验数据库error失败"
);
logger
.
info
(
"校验支付宝异常账户兑换失败成功"
);
logger
.
info
(
"校验支付宝异常账户兑换失败成功"
);
...
...
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