Authored by chenchao

fix content of seller deposit order

@@ -3,6 +3,7 @@ package com.yohoufo.order.service.seller.deposit; @@ -3,6 +3,7 @@ package com.yohoufo.order.service.seller.deposit;
3 import com.alibaba.fastjson.JSONObject; 3 import com.alibaba.fastjson.JSONObject;
4 import com.yohobuy.ufo.model.order.bo.AppraiseOrderBo; 4 import com.yohobuy.ufo.model.order.bo.AppraiseOrderBo;
5 import com.yohoufo.order.BaseWebTest; 5 import com.yohoufo.order.BaseWebTest;
  6 +import com.yohoufo.order.event.OrderCancelEvent;
6 import org.junit.Test; 7 import org.junit.Test;
7 import org.springframework.beans.factory.annotation.Autowired; 8 import org.springframework.beans.factory.annotation.Autowired;
8 9
@@ -20,4 +21,12 @@ public class SellerDepositOrderServiceTest extends BaseWebTest { @@ -20,4 +21,12 @@ public class SellerDepositOrderServiceTest extends BaseWebTest {
20 List<AppraiseOrderBo> list = sellerDepositOrderService.getSubOrderStatistic(orderCode); 21 List<AppraiseOrderBo> list = sellerDepositOrderService.getSubOrderStatistic(orderCode);
21 System.out.println("in testGetSubOrderStatistic result" + JSONObject.toJSONString(list)); 22 System.out.println("in testGetSubOrderStatistic result" + JSONObject.toJSONString(list));
22 } 23 }
  24 +
  25 + @Test
  26 + public void testcancelByTimeout(){
  27 + String json = "{\"orderCode\":36379748458307,\"payExpire\":10,\"retry\":0,\"uid\":500031424}";
  28 + OrderCancelEvent orderCancelEvent = JSONObject.parseObject(json, OrderCancelEvent.class);
  29 + sellerDepositOrderService.cancelByTimeout(orderCancelEvent);
  30 +
  31 + }
23 } 32 }