AppGroupService { public ListResult<AppGroupView> findProjectGroupPageList(Paging<AppGroup> paging) throws SQLException { Long count = appGroupDao.getAppGroupTotalCount(paging); return PagerUtil.find(count, paging.getPage(), paging.getPageSize(), () -> { List<AppGroupView> list = appGroupDao.findAppGroupPageList(paging); if (CollectionUtils.isEmpty(list)) { return Collections.emptyList(); } return list; }); }  ValidatorChain validatePermision(LoginUser user, Errors errors); ListResult<AppGroupView> findProjectGroupPageList(Paging<AppGroup> paging); ServiceResult<String> insertAppGroup(AppGroup appGroup); ServiceResult deleteCheck(Long dbsetId); ServiceResult<String> deleteAppGroup(AppGroup appGroup); ServiceResult<String> updateAppGroup(AppGroup appGroup); boolean isNotExistByName(AppGroup appGroup);  }
@Test public void findProjectGroupPageListTest() throws SQLException { Paging<AppGroup> paging = new Paging<>(); paging.setData(new AppGroup()); ListResult<AppGroupView> listResult = appGroupService.findProjectGroupPageList(paging); Assert.assertTrue(listResult.getList().size() > 0); }