@Test public void updateDalGroupTest() throws Exception { LoginUser user = LoginUser.builder().id(1L).build(); DasGroup group = DasGroup.builder().group_name("name").build(); Assert.assertTrue(groupService.updateDalGroup(user, group)); }
public boolean updateDalGroup(LoginUser user, DasGroup group) throws SQLException { group.setUpdate_user_no(user.getUserNo()); if (groupDao.updateDalGroup(group) <= 0) { return false; } return true; }
GroupService { public boolean updateDalGroup(LoginUser user, DasGroup group) throws SQLException { group.setUpdate_user_no(user.getUserNo()); if (groupDao.updateDalGroup(group) <= 0) { return false; } return true; } }
GroupService { public boolean updateDalGroup(LoginUser user, DasGroup group) throws SQLException { group.setUpdate_user_no(user.getUserNo()); if (groupDao.updateDalGroup(group) <= 0) { return false; } return true; }  }
GroupService { public boolean updateDalGroup(LoginUser user, DasGroup group) throws SQLException { group.setUpdate_user_no(user.getUserNo()); if (groupDao.updateDalGroup(group) <= 0) { return false; } return true; }  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 updateDalGroup(LoginUser user, DasGroup group) throws SQLException { group.setUpdate_user_no(user.getUserNo()); if (groupDao.updateDalGroup(group) <= 0) { return false; } return true; }  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();  }