package hh;

import com.jd.jdx.x.sr.cms.business.container.ConOrderMainBusiness;
import com.jd.jdx.x.sr.cms.dao.good.goodscategory.StkGoodsCategoryDao;
import com.jd.jdx.x.sr.cms.domain.container.model.ConOrderMain;
import com.jd.jdx.x.sr.cms.service.container.ConOrderMainService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import javax.annotation.Resource;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {"classpath*:spring-config.xml"})
public class UnitTestCon {
    @Resource
    private StkGoodsCategoryDao stkGoodsCategoryDao;

    @Resource
    private ConOrderMainService conOrderMainService;

    @Test
    public void testInsertEmptyOrder() throws Exception {
        ConOrderMain conOrderMain = new ConOrderMain();
        conOrderMain.setProjectNo("1001");
        conOrderMain.setProjectName("智能货柜");
        conOrderMain.setSellerNo("JDX0001");
        conOrderMain.setSellerName("北京京东乾石科技有限公司");
        conOrderMain.setDeviceNo("11");
        conOrderMain.setDeviceName("乐不思蜀");
        conOrderMainService.insertEmptyConOrderMain(conOrderMain);
    }

}

 

posted on 2020-03-16 15:48  王洪洪  阅读(166)  评论(0编辑  收藏  举报