Skip to content
Permalink
Browse files
Merge pull request #7 from myrle-krantz/develop
Fixing compile error in service unit tests.
  • Loading branch information
myrle-krantz committed May 2, 2017
2 parents d4ee760 + 2d3ee9d commit 580c55345f790e0e995f70c3c576ee7f196d3853
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 580c553

Please sign in to comment.