package com.uquanba.coupon.mapper; import com.uquanba.coupon.copoun.dao.TbCategoryMapper; 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; @RunWith(SpringRunner.class) @SpringBootTest public class MapperTest { @Autowired private TbCategoryMapper tbCategoryMapper; @Test public void mapperTest(){ assert tbCategoryMapper != null; } public void queryListTest(){ tbCategoryMapper.queryList(); } }
springboot实用mybatis时对DAO层进行单元测试
猜你喜欢
转载自blog.csdn.net/lixia755324/article/details/80170502
今日推荐
周排行