Skip to content

Commit

Permalink
Update unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SujanSanjula96 committed Nov 20, 2024
1 parent 3cb1d7e commit 2caad4d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import org.wso2.carbon.identity.organization.management.service.util.OrganizationManagementUtil;
import org.wso2.carbon.identity.role.v2.mgt.core.RoleManagementService;
import org.wso2.carbon.identity.role.v2.mgt.core.exception.IdentityRoleManagementException;
import org.wso2.carbon.identity.role.v2.mgt.core.model.Role;
import org.wso2.carbon.identity.role.v2.mgt.core.model.RoleBasicInfo;
import org.wso2.carbon.user.core.UserRealm;
import org.wso2.carbon.user.core.common.AbstractUserStoreManager;
import org.wso2.carbon.user.core.config.RealmConfiguration;
Expand Down Expand Up @@ -81,7 +81,7 @@ public class AppPortalRoleManagementListenerTest {
private RoleManagementService roleManagementService;

@Mock
private Role role;
private RoleBasicInfo role;

@BeforeMethod
public void setUp() {
Expand Down Expand Up @@ -140,7 +140,7 @@ public void testPreUpdateUserListOfRole(String roleId, List<String> newUserIDLis
when(mockUserRealm.getUserStoreManager()).thenReturn(mockUserStoreManager);
when(mockUserStoreManager.getUserIDFromUserName(anyString())).thenReturn(adminUserId);
mockAppsCommonDataHolder(appsCommonDataHolder);
when(roleManagementService.getRole(roleId, tenantDomain)).thenReturn(role);
when(roleManagementService.getRoleBasicInfoById(roleId, tenantDomain)).thenReturn(role);
setRoleAttributes(isAdminRole);

// Call the method.
Expand Down

0 comments on commit 2caad4d

Please sign in to comment.