GroupService { public boolean isInCurrentGroup(Long userId, int currentGroupId) throws SQLException { List<UserGroup> urgroups = userGroupDao.getUserGroupByUserId(userId); if (CollectionUtils.isNotEmpty(urgroups) && urgroups.stream().anyMatch(ug -> ug.getUser_id() == currentGroupId)) { return true; } return false; }  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();  }
@Test public void isInCurrentGroupTest() throws Exception { Assert.assertTrue(groupService.isInSuperGroup("1")); }