Skip to content

Commit

Permalink
refactor tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sadilchamishka committed Sep 20, 2024
1 parent b535b22 commit d137ed6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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."))
Expand Down

0 comments on commit d137ed6

Please sign in to comment.