Skip to content

Commit

Permalink
MOSIP-19954 Issue when we create a location with the same name with d…
Browse files Browse the repository at this point in the history
…ifferent parents in the same hierarchy level
  • Loading branch information
Shilpa M committed Feb 9, 2022
1 parent 3f36b65 commit c9bb397
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@ public void updateLocationAlreadyExistsUnderHeirarchyExceptionTest() throws Exce
dto1.setIsActive(true);
request.setRequest(dto1);
String requestJson = mapper.writeValueAsString(request);
when(repo.findByNameParentLoccodeAndLevelLangCodeNotCode(Mockito.any(),Mockito.any(),Mockito.any(),Mockito.any(), Mockito.any()))
.thenReturn(Arrays.asList(location1));
when(repo.findLocationHierarchyByCodeAndLanguageCode(Mockito.any(), Mockito.any()))
.thenReturn(Arrays.asList(location1));
when(repo.findByNameAndLevelLangCodeNotCode(Mockito.any(),Mockito.any(),Mockito.any(), Mockito.any())).thenReturn(Arrays.asList(location1));
Expand Down

0 comments on commit c9bb397

Please sign in to comment.