|
|
@@ -271,7 +271,17 @@ public class UserMapperTest extends SpringBootDemoOrmMybatisMapperPageApplicatio |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 测试通用Mapper - 查询 |
|
|
|
* 测试通用Mapper - 查询单个 |
|
|
|
*/ |
|
|
|
@Test |
|
|
|
public void testQueryOne(){ |
|
|
|
User user = userMapper.selectByPrimaryKey(1L); |
|
|
|
Assert.assertNotNull(user); |
|
|
|
log.debug("【user】= {}", user); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 测试通用Mapper - 查询全部 |
|
|
|
*/ |
|
|
|
@Test |
|
|
|
public void testQueryAll() { |
|
|
|