Commit b3c64c71 authored by 钱雯君's avatar 钱雯君

add

parent 72256def
......@@ -40,7 +40,7 @@ public class 兑吧_优惠券秒杀商品兑换测试_AccessTest extends DuibaTe
private static DuibaLog logger = DuibaLog.getLogger();
private static final Integer uid_Nomal = 2709;
private static final Integer uid_Nomal = 4113;
......
......@@ -40,7 +40,8 @@ public class 兑吧_实物秒杀商品兑换测试_AccessTest extends DuibaTestB
private static DuibaLog logger = DuibaLog.getLogger();
private static final Integer uid_Nomal = 2709;
private static final Integer uid_Nomal = 4112;
private static final String consumer_Nomal = "100092492";
@Test
......@@ -49,7 +50,7 @@ public class 兑吧_实物秒杀商品兑换测试_AccessTest extends DuibaTestB
try {
Map<String,Object> user = jdbc.findSimpleResult("select * from dafuweng.user where id=?\n",uid_Nomal);
Map<String,Object> consumer = jdbc.findSimpleResult("select * from new_consumer.consumer_0010 where id=?\n","100011624");
Map<String,Object> consumer = jdbc.findSimpleResult("select * from new_consumer.consumer_0010 where id=?\n",consumer_Nomal);
Long userCredit = Long.parseLong(user.get("credits").toString());
Long consumerCredit = Long.parseLong(consumer.get("credits").toString());
......@@ -109,7 +110,7 @@ public class 兑吧_实物秒杀商品兑换测试_AccessTest extends DuibaTestB
Thread.sleep(3000);
Map<String,Object> user1 = jdbc.findSimpleResult("select * from dafuweng.user where id=?\n",uid_Nomal);
Map<String,Object> consumer1 = jdbc.findSimpleResult("select * from new_consumer.consumer_0010 where id=?\n","100011624");
Map<String,Object> consumer1 = jdbc.findSimpleResult("select * from new_consumer.consumer_0010 where id=?\n",consumer_Nomal);
String userCredit1 = user1.get("credits").toString();
String consumerCredit1 = consumer1.get("credits").toString();
Assert.assertEquals(userCredit1,String.valueOf(userCredit-20),"user积分扣除校验失败");
......
......@@ -39,7 +39,7 @@ public class 自有_优惠券秒杀商品兑换测试_AccessTest extends DuibaTe
Authorization authorization;
private static DuibaLog logger = DuibaLog.getLogger();
private static final Integer uid_Nomal = 2709;
private static final Integer uid_Nomal = 4114;
@Test
......
......@@ -39,7 +39,8 @@ public class 自有_实物秒杀商品兑换测试_AccessTest extends DuibaTestB
Authorization authorization;
private static DuibaLog logger = DuibaLog.getLogger();
private static final Integer uid_Nomal = 2709;
private static final Integer uid_Nomal = 4115;
private static final String consumer_Nomal = "100092497";
......
......@@ -40,7 +40,7 @@ public class 自有_虚拟商品秒杀商品兑换测试_AccessTest extends Duib
Authorization authorization;
private static DuibaLog logger = DuibaLog.getLogger();
private static final Integer uid_Nomal = 2709;
private static final Integer uid_Nomal = 4116;
......@@ -90,7 +90,7 @@ public class 自有_虚拟商品秒杀商品兑换测试_AccessTest extends Duib
// Assert.assertEquals(itemStock1,String.valueOf(itemStock-1),"校验库存失败");
Map<String,Object> res = jdbc.findSimpleResult("select * from orders_consumer.orders_0616 where id = ?\n",orderId);
Map<String,Object> res = jdbc.findSimpleResult("select * from orders_consumer.orders_0594 where id = ?\n",orderId);
logger.info("数据库订单信息为"+ JSONObject.toJSONString(res));
Assert.assertEquals(res.get("status"),"success","校验订单状态失败");
Assert.assertEquals(res.get("type"),"virtual","中奖奖品类型失败");
......
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