ServerConfigService { public ListResult<ServerConfig> findServerAppConfigPageList(Paging<ServerConfig> paging) throws SQLException { Long count = serverAppConfigDao.getServerAppConfigTotalCount(paging); return PagerUtil.find(count, paging.getPage(), paging.getPageSize(), () -> { List<ServerConfig> list = serverAppConfigDao.findServerAppConfigPageList(paging); if (CollectionUtils.isEmpty(list)) { return Collections.emptyList(); } return list; }); }  ValidatorChain validatePermision(LoginUser user, Errors errors); ListResult<ServerConfig> findServerAppConfigPageList(Paging<ServerConfig> paging);  }
@Test public void findServerAppConfigPageListTest() throws SQLException { Paging<ServerConfig> paging = new Paging<>(); paging.setData(new ServerConfig()); Assert.assertTrue(serverConfigService.findServerAppConfigPageList(paging).getList().size() > 0); }