use of com.github.pagehelper.model.UserCode in project Mybatis-PageHelper by pagehelper.
the class EnumTest method testCloseable.
@Test
public void testCloseable() {
SqlSession sqlSession = MybatisHelper.getSqlSession();
UserMapper userMapper = sqlSession.getMapper(UserMapper.class);
PageHelper.startPage(1, 2);
List<UserCode> userCodes = userMapper.selectByCode(Code.LR);
Assert.assertEquals(1, userCodes.size());
sqlSession.close();
}
Aggregations