Skip to content

Commit

Permalink
test case changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Shilpa M committed Feb 28, 2022
1 parent b21195d commit 3757958
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ public void updateLocationAlreadyExistsUnderHeirarchyExceptionTest() throws Exce
String requestJson = mapper.writeValueAsString(request);
when(repo.findLocationHierarchyByCodeAndLanguageCode(Mockito.any(), Mockito.any()))
.thenReturn(Arrays.asList(location1));
when(repo.findByNameParentlocCodeAndLevelLangCodeNotCode(Mockito.any(),Mockito.any(),Mockito.any(), Mockito.any(),Mockito.any())).thenReturn(Arrays.asList(location1));
when(repo.findByNameAndLevelLangCodeNotCode(Mockito.any(),Mockito.any(),Mockito.any(), Mockito.any())).thenReturn(Arrays.asList(location1));
mockMvc.perform(put("/locations").contentType(MediaType.APPLICATION_JSON).content(requestJson))
.andExpect(status().isOk());
Expand Down

0 comments on commit 3757958

Please sign in to comment.