AppGroupDao extends BaseDao { public int deleteAppGroup(AppGroup appGroup) throws SQLException { if (null == appGroup || appGroup.getId() == null) { return 0; } return this.getDasClient().deleteByPk(appGroup); }  Long insertAppGroup(AppGroup appGroup); AppGroup getAppGroupById(Long id); int updateAppGroup(AppGroup appGroup); int deleteAppGroup(AppGroup appGroup); Long getCountByName(String name); Long getCountByIdAndName(Long id, String name); int changeServerGroup(Long newServerGroupId, Set<Long> appGroupIds); List<AppGroup> getAppGroupsByServerGroupId(Long serverGroupId); Long getAppGroupTotalCount(Paging<AppGroup> paging); List<AppGroupView> findAppGroupPageList(Paging<AppGroup> paging);  }
@Test public void deleteAppGroup() throws Exception { appGroup.setId(2L); int count = appGroupDao.deleteAppGroup(appGroup); System.out.println("deleteAppGroup :-------> " + count); Assert.assertTrue(count > 0); }