Skip to content

Commit

Permalink
Fix unit tests SCIMRoleManagerV2Test
Browse files Browse the repository at this point in the history
  • Loading branch information
KD23243 committed Aug 27, 2024
1 parent 5d2e946 commit 1347b99
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@

import org.mockito.Mock;
import org.mockito.MockedStatic;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import org.wso2.carbon.identity.core.ServiceURLBuilder;
import org.wso2.carbon.base.CarbonBaseConstants;
import org.wso2.carbon.identity.core.util.IdentityUtil;
import org.wso2.carbon.identity.role.v2.mgt.core.RoleManagementService;
import org.wso2.carbon.identity.role.v2.mgt.core.exception.IdentityRoleManagementException;
Expand Down Expand Up @@ -78,6 +79,12 @@ public void setUpMethod() {
scimRoleManagerV2 = new SCIMRoleManagerV2(roleManagementService, SAMPLE_TENANT_DOMAIN);
}

@AfterMethod
public void tearDown() {
identityUtil.close();
System.clearProperty(CarbonBaseConstants.CARBON_HOME);
}

@DataProvider(name = "scimOperations")
public Object[][] provideScimOperations() {

Expand Down

0 comments on commit 1347b99

Please sign in to comment.