GroupService { public boolean isInSuperGroup(String userNo) throws SQLException { LoginUser user = loginUserDao.getUserByNo(userNo); List<UserGroup> groups = userGroupDao.getUserGroupByUserId(user.getId()); if (CollectionUtils.isNotEmpty(groups)) { return groups.stream().anyMatch(group -> group.getUser_id().equals(consts.SUPER_GROUP_ID)); } 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 isInSuperGroupTest() throws Exception { Assert.assertTrue(groupService.isInCurrentGroup(1L, 1)); }