Commit 2cdd1fa9 authored by 马博's avatar 马博

test

parent ab240a96
...@@ -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;
} }
/** /**
......
...@@ -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("校验支付宝异常账户兑换失败成功");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment