@Test public void test_getPositionHierarchy() { List<PositionHierarchy> positionHierarchies = new ArrayList<>(); when(positionHierarchyRepository.findForCriteria(any(PositionHierarchyGetRequest.class))).thenReturn(positionHierarchies); List<PositionHierarchy> result = positionHierarchyService.getPositionHierarchies(any(PositionHierarchyGetRequest.class)); assertThat(result).isEqualTo(positionHierarchies); }
public List<PositionHierarchy> getPositionHierarchies(PositionHierarchyGetRequest positionHierarchyGetRequest) { return positionHierarchyRepository.findForCriteria(positionHierarchyGetRequest); }
PositionHierarchyService { public List<PositionHierarchy> getPositionHierarchies(PositionHierarchyGetRequest positionHierarchyGetRequest) { return positionHierarchyRepository.findForCriteria(positionHierarchyGetRequest); } }
PositionHierarchyService { public List<PositionHierarchy> getPositionHierarchies(PositionHierarchyGetRequest positionHierarchyGetRequest) { return positionHierarchyRepository.findForCriteria(positionHierarchyGetRequest); }  }
PositionHierarchyService { public List<PositionHierarchy> getPositionHierarchies(PositionHierarchyGetRequest positionHierarchyGetRequest) { return positionHierarchyRepository.findForCriteria(positionHierarchyGetRequest); }  List<PositionHierarchy> getPositionHierarchies(PositionHierarchyGetRequest positionHierarchyGetRequest); }
PositionHierarchyService { public List<PositionHierarchy> getPositionHierarchies(PositionHierarchyGetRequest positionHierarchyGetRequest) { return positionHierarchyRepository.findForCriteria(positionHierarchyGetRequest); }  List<PositionHierarchy> getPositionHierarchies(PositionHierarchyGetRequest positionHierarchyGetRequest);  }