PublicStrategyService { public ListResult<PublicStrategyView> findPublicShardingStrategyPageList(Paging<PublicStrategy> paging) throws SQLException { Long count = publicStrategyDao.getPublicStrategyTotalCount(paging); return PagerUtil.find(count, paging.getPage(), paging.getPageSize(), () -> { List<PublicStrategyView> list = publicStrategyDao.findPublicStrategyPageList(paging); if (CollectionUtils.isEmpty(list)) { return Collections.emptyList(); } return list; }); }  ValidatorChain validatePermision(LoginUser user, Errors errors); ListResult<PublicStrategyView> findPublicShardingStrategyPageList(Paging<PublicStrategy> paging); boolean isNotExistByName(PublicStrategy publicStrategy); String getStrategyClassName(DatabaseSet databaseSet);  }
@Test public void findPublicShardingStrategyPageListTest() throws SQLException { Paging<PublicStrategy> paging = new Paging<>(); paging.setData(new PublicStrategy()); Assert.assertTrue(publicStrategyService.findPublicShardingStrategyPageList(paging).getList().size() > 0); }