@Test public void isNotExistInProjectAndGroupTest() throws Exception { Assert.assertTrue(groupService.isNotExistInProjectAndGroup("name")); }
public boolean isNotExistInProjectAndGroup(String name) throws SQLException { name = name.trim(); return projectDao.getCountByName(name) == 0 && groupDao.getCountByName(name) == 0; }
GroupService { public boolean isNotExistInProjectAndGroup(String name) throws SQLException { name = name.trim(); return projectDao.getCountByName(name) == 0 && groupDao.getCountByName(name) == 0; } }
GroupService { public boolean isNotExistInProjectAndGroup(String name) throws SQLException { name = name.trim(); return projectDao.getCountByName(name) == 0 && groupDao.getCountByName(name) == 0; }  }
GroupService { public boolean isNotExistInProjectAndGroup(String name) throws SQLException { name = name.trim(); return projectDao.getCountByName(name) == 0 && groupDao.getCountByName(name) == 0; }  ValidatorChain validatePermision(LoginUser user, Errors errors); boolean addDalGroup(LoginUser user, DasGroup group); boolean updateDalGroup(LoginUser user, DasGroup group); boolean isInSuperGroup(String userNo); boolean isInCurrentGroup(Long userId, int currentGroupId); ListResult<DalGroupView> findGroupPageList(Paging<DasGroup> paging); boolean isNotExistByName(DasGroup group); boolean isNotExistInProjectAndGroup(String name); int initAdminGroup(); }
GroupService { public boolean isNotExistInProjectAndGroup(String name) throws SQLException { name = name.trim(); return projectDao.getCountByName(name) == 0 && groupDao.getCountByName(name) == 0; }  ValidatorChain validatePermision(LoginUser user, Errors errors); boolean addDalGroup(LoginUser user, DasGroup group); boolean updateDalGroup(LoginUser user, DasGroup group); boolean isInSuperGroup(String userNo); boolean isInCurrentGroup(Long userId, int currentGroupId); ListResult<DalGroupView> findGroupPageList(Paging<DasGroup> paging); boolean isNotExistByName(DasGroup group); boolean isNotExistInProjectAndGroup(String name); int initAdminGroup();  }