@Test(expected = RepositoryException.class) public void testGetSuperAdminListThrowsException() throws Exception { doThrow(RepositoryException.class).when(authorizationRepository) .getSuperAdminRoleList(); List<UserRole> roles = defaultAuthorization.getSuperAdminRoleList(); }
@Override public List<UserRole> getSuperAdminRoleList() { LOGGER.debug("Getting all super admins"); return authorizationRepository.getSuperAdminRoleList(); }
DefaultAuthorization implements Authorization { @Override public List<UserRole> getSuperAdminRoleList() { LOGGER.debug("Getting all super admins"); return authorizationRepository.getSuperAdminRoleList(); } }
DefaultAuthorization implements Authorization { @Override public List<UserRole> getSuperAdminRoleList() { LOGGER.debug("Getting all super admins"); return authorizationRepository.getSuperAdminRoleList(); } @Inject  DefaultAuthorization(final AuthorizationRepository authorizationRepository, final Experiments experiments,
                                final EventLog eventLog); }
DefaultAuthorization implements Authorization { @Override public List<UserRole> getSuperAdminRoleList() { LOGGER.debug("Getting all super admins"); return authorizationRepository.getSuperAdminRoleList(); } @Inject  DefaultAuthorization(final AuthorizationRepository authorizationRepository, final Experiments experiments,
                                final EventLog eventLog); @Override List<Permission> getPermissionsFromRole(Role role); @Override UserPermissionsList getUserPermissionsList(UserInfo.Username userID); @Override UserRoleList getApplicationUsers(Application.Name applicationName); @Override UserPermissions getUserPermissions(UserInfo.Username userID, Application.Name applicationName); @Override void deleteUserRole(UserInfo.Username userID, Application.Name applicationName, UserInfo admin); @Override void checkUserPermissions(UserInfo.Username userID, Application.Name applicationName, Permission permission); @Override UserInfo.Username getUser(String authHeader); @Override Map setUserRole(UserRole userRole, UserInfo admin); @Override UserRoleList getUserRoleList(UserInfo.Username userID); @Override void checkSuperAdmin(UserInfo.Username userID); @Override UserInfo getUserInfo(UserInfo.Username userID); @Override void assignUserToSuperAdminRole(final UserInfo candidateUserInfo, final UserInfo assigningUserInfo); @Override void removeUserFromSuperAdminRole(final UserInfo candidateUserInfo, final UserInfo assigningUserInfo); @Override List<UserRole> getSuperAdminRoleList(); }
DefaultAuthorization implements Authorization { @Override public List<UserRole> getSuperAdminRoleList() { LOGGER.debug("Getting all super admins"); return authorizationRepository.getSuperAdminRoleList(); } @Inject  DefaultAuthorization(final AuthorizationRepository authorizationRepository, final Experiments experiments,
                                final EventLog eventLog); @Override List<Permission> getPermissionsFromRole(Role role); @Override UserPermissionsList getUserPermissionsList(UserInfo.Username userID); @Override UserRoleList getApplicationUsers(Application.Name applicationName); @Override UserPermissions getUserPermissions(UserInfo.Username userID, Application.Name applicationName); @Override void deleteUserRole(UserInfo.Username userID, Application.Name applicationName, UserInfo admin); @Override void checkUserPermissions(UserInfo.Username userID, Application.Name applicationName, Permission permission); @Override UserInfo.Username getUser(String authHeader); @Override Map setUserRole(UserRole userRole, UserInfo admin); @Override UserRoleList getUserRoleList(UserInfo.Username userID); @Override void checkSuperAdmin(UserInfo.Username userID); @Override UserInfo getUserInfo(UserInfo.Username userID); @Override void assignUserToSuperAdminRole(final UserInfo candidateUserInfo, final UserInfo assigningUserInfo); @Override void removeUserFromSuperAdminRole(final UserInfo candidateUserInfo, final UserInfo assigningUserInfo); @Override List<UserRole> getSuperAdminRoleList();  }