Skip to content
Permalink
Browse files
This was missed when the IdentityManager name was changed.
  • Loading branch information
mifosio-04-04-2018 committed May 2, 2017
1 parent 4675a76 commit 395224e2c9ac123bae9993fc344941874f4ce74e
Showing 1 changed file with 4 additions and 4 deletions.
@@ -17,7 +17,7 @@

import io.mifos.anubis.api.v1.client.Anubis;
import io.mifos.anubis.api.v1.domain.PermittableEndpoint;
import io.mifos.identity.api.v1.client.IdentityService;
import io.mifos.identity.api.v1.client.IdentityManager;
import io.mifos.identity.api.v1.client.PermittableGroupAlreadyExistsException;
import io.mifos.identity.api.v1.domain.PermittableGroup;
import org.junit.Assert;
@@ -90,7 +90,7 @@ public void getPermittableGroupsOnEmptyList() throws Exception {
public void createOrFindPermittableGroupThatAlreadyExists() throws Exception {
final Logger loggerMock = Mockito.mock(Logger.class);

final IdentityService identityServiceMock = Mockito.mock(IdentityService.class);
final IdentityManager identityServiceMock = Mockito.mock(IdentityManager.class);
doThrow(PermittableGroupAlreadyExistsException.class).when(identityServiceMock).createPermittableGroup(group1);
doReturn(reorderedGroup1).when(identityServiceMock).getPermittableGroup(group1.getIdentifier());

@@ -101,7 +101,7 @@ public void createOrFindPermittableGroupThatAlreadyExists() throws Exception {
public void createOrFindPermittableGroupThatAlreadyExistsDifferently() throws Exception {
final Logger loggerMock = Mockito.mock(Logger.class);

final IdentityService identityServiceMock = Mockito.mock(IdentityService.class);
final IdentityManager identityServiceMock = Mockito.mock(IdentityManager.class);
doThrow(PermittableGroupAlreadyExistsException.class).when(identityServiceMock).createPermittableGroup(group1);
doReturn(changedGroup1).when(identityServiceMock).getPermittableGroup(group1.getIdentifier());

@@ -114,7 +114,7 @@ public void createOrFindPermittableGroupThatAlreadyExistsDifferently() throws Ex
public void createOrFindPermittableGroupWhenIsisCallFails() throws Exception {
final Logger loggerMock = Mockito.mock(Logger.class);

final IdentityService identityServiceMock = Mockito.mock(IdentityService.class);
final IdentityManager identityServiceMock = Mockito.mock(IdentityManager.class);
doThrow(IllegalStateException.class).when(identityServiceMock).createPermittableGroup(group1);
doReturn(changedGroup1).when(identityServiceMock).getPermittableGroup(group1.getIdentifier());

0 comments on commit 395224e

Please sign in to comment.