PrivilegeIbatisDao extends SqlMapClientDaoSupport implements PrivilegeDao { @SuppressWarnings("unchecked") @Override public List<PrivilegeCategory> getPrivilegeCategories() { return getSqlMapClientTemplate().queryForList("Privilege.getPrivilegeCategories"); }  @SuppressWarnings("unchecked") @Override List<PrivilegeCategory> getPrivilegeCategories(); @SuppressWarnings("unchecked") @Override List<Role> getRoles(); @SuppressWarnings("unchecked") @Override List<Privilege> getRolePrivileges(int roleId); @Override void deleteRolePrivileges(int roleId); @Override void insertRolePrivileges(int roleId, List<Integer> privilegeIds); @Override int createRole(Role role); @Override Role getRole(int roleId); @Override int updateRole(Role role); @Override void deleteUserRoleRelation(int roleId); @Override void deleteRolePrivilegeRelation(int roleId); @Override void deleteRole(int roleId); @SuppressWarnings("unchecked") @Override List<Resource> getAllResource(); @SuppressWarnings("unchecked") @Override List<Resource> getUserResources(int userId); @Override int insertResource(Resource resource); @Override int insertPrivilege(Privilege privilege); @Override int insertPrivilegeCategory(PrivilegeCategory category); @Override Resource findResourceByCode(String resourceCode); @Override long getUserCount(RoleUserCriteria criteria); @SuppressWarnings("unchecked") @Override List<User> getUserList(RoleUserCriteria criteria, Paginater<User> paginater); @Override void addRole2User(int roleId, int userId); @Override void deleteRoleFromUser(int roleId, int userId);  }
@Test public void testGetPrivilegeCategories() { List<PrivilegeCategory> categories = privilegeDao.getPrivilegeCategories(); assertNotNull(categories); }