• 微信公众号:美女很有趣。 工作之余,放松一下,关注即送10G+美女照片!

springboot test方法

开发技术 开发技术 4小时前 2次浏览

import com.lanfu.storehouse.MessageApplication;
import com.lanfu.storehouse.dao.mapper.PushMessageLogMapper;
import com.lanfu.storehouse.dto.req.wx.EntityVo;
import com.lanfu.storehouse.enums.InvoiceRecordTypeIntEnums;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.test.context.web.WebAppConfiguration;

@RunWith(SpringRunner.class)
@SpringBootTest(classes = {MessageApplication.class})
@WebAppConfiguration
public class Test001 {
@Autowired
private PushMessageLogMapper invoiceRecordMapper;

@Test
public void test000(){
EntityVo entityVo = new EntityVo("", "", InvoiceRecordTypeIntEnums.descOf(1), "蓝服控股", "1.00" + "元", "");
System.out.println("entityVo = " + entityVo);
}
}

程序员灯塔
转载请注明原文链接:springboot test方法
喜欢 (0)