diff --git a/components/org.wso2.carbon.identity.organization.management.service/src/test/java/org/wso2/carbon/identity/organization/management/service/OrganizationManagerImplTest.java b/components/org.wso2.carbon.identity.organization.management.service/src/test/java/org/wso2/carbon/identity/organization/management/service/OrganizationManagerImplTest.java index 76dd34b7..8397570c 100644 --- a/components/org.wso2.carbon.identity.organization.management.service/src/test/java/org/wso2/carbon/identity/organization/management/service/OrganizationManagerImplTest.java +++ b/components/org.wso2.carbon.identity.organization.management.service/src/test/java/org/wso2/carbon/identity/organization/management/service/OrganizationManagerImplTest.java @@ -678,7 +678,8 @@ public void testAddOrganizationFailWhileRoleBack() throws Exception { Organization sampleOrganization = getOrganization(UUID.randomUUID().toString(), NEW_ORG_NAME, ORG_DESCRIPTION, SUPER_ORG_ID, STRUCTURAL.toString()); TestUtils.mockCarbonContext(SUPER_ORG_ID); - OrganizationManagerListener mockOrgMgtListener = OrganizationManagementDataHolder.getInstance().getOrganizationManagerListener(); + OrganizationManagerListener mockOrgMgtListener = OrganizationManagementDataHolder.getInstance() + .getOrganizationManagerListener(); Mockito.doThrow(new OrganizationManagementException("Server encountered error while executing post listeners.")) .when(mockOrgMgtListener).postAddOrganization(sampleOrganization); Mockito.doThrow(new OrganizationManagementException("Server encountered error while deleting organization."))