Authored by chenchao

fix content of seller deposit order

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