/** * {@link com.hangum.tadpole.sql.system.TadpoleSystem_UserGroupQuery#newUserGroup(String) 신규 유저그룹 * 등록 테스트} */ public void testNewUserGroup() { try { boolean isGroup = TadpoleSystem_UserGroupQuery.isUserGroup(groupName); if (!isGroup) { TadpoleSystem_UserGroupQuery.newUserGroup(groupName); } } catch (Exception e) { fail("fail new user group" + e.getMessage()); e.printStackTrace(); } }
/** {@link com.hangum.tadpole.sql.system.TadpoleSystem_UserGroupQuery#getGroup() 유저그룹 리스트 테스트} */ public void testGetGroup() { boolean isGroupExist = false; try { List<UserGroupDAO> listGroup = TadpoleSystem_UserGroupQuery.getGroup(); for (UserGroupDAO userGroupDAO : listGroup) { if (groupName.equals(userGroupDAO.getName())) { isGroupExist = true; } } assertEquals(isGroupExist, true); } catch (Exception e) { fail("fail list user group"); e.printStackTrace(); } }
/** * {@link com.hangum.tadpole.sql.system.TadpoleSystem_UserGroupQuery#isUserGroup(String) 유저그룹 존재} */ public void testIsUserGroup() { boolean isGroup = TadpoleSystem_UserGroupQuery.isUserGroup(groupName); assertEquals(isGroup, true); }