sprint 单元测试

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);
    }

}

 

上一篇:白话SCRUM 之三:sprint backlog


下一篇:Sprint Boot如何基于Redis发布订阅实现异步消息系统的同步调用?