@Test public void test_should_fetch_all_escalation_hierarchy() { List<EscalationHierarchy> escHierarchyList = prepareEscalationHierarchyList(); when(escalationHierarchyRepository.getAllEscalationHierarchy(any(EscalationHierarchyGetReq.class))).thenReturn(escHierarchyList); assertTrue(escHierarchyList.equals(escalationHierarchyRepository.getAllEscalationHierarchy(prepareGetRequest()))); }
public List<EscalationHierarchy> getAllEscalationHierarchy(EscalationHierarchyGetReq escHierarchyGetRequest) { List<EscalationHierarchy> escHierarchyList = escalationHierarchyRepository.getAllEscalationHierarchy(escHierarchyGetRequest); return escHierarchyList; }
EscalationHierarchyService { public List<EscalationHierarchy> getAllEscalationHierarchy(EscalationHierarchyGetReq escHierarchyGetRequest) { List<EscalationHierarchy> escHierarchyList = escalationHierarchyRepository.getAllEscalationHierarchy(escHierarchyGetRequest); return escHierarchyList; } }
EscalationHierarchyService { public List<EscalationHierarchy> getAllEscalationHierarchy(EscalationHierarchyGetReq escHierarchyGetRequest) { List<EscalationHierarchy> escHierarchyList = escalationHierarchyRepository.getAllEscalationHierarchy(escHierarchyGetRequest); return escHierarchyList; }  }
EscalationHierarchyService { public List<EscalationHierarchy> getAllEscalationHierarchy(EscalationHierarchyGetReq escHierarchyGetRequest) { List<EscalationHierarchy> escHierarchyList = escalationHierarchyRepository.getAllEscalationHierarchy(escHierarchyGetRequest); return escHierarchyList; }  List<EscalationHierarchy> createEscalationHierarchy(final String topic, final String key,
			final EscalationHierarchyReq escalationHierarchyRequest); List<EscalationHierarchy> updateEscalationHierarchy(final String topic, final String key,
			final EscalationHierarchyReq escalationHierarchyRequest); List<EscalationHierarchy> create(EscalationHierarchyReq escalationHierarchyRequest); List<EscalationHierarchy> update(EscalationHierarchyReq escalationHierarchyRequest); List<EscalationHierarchy> getAllEscalationHierarchy(EscalationHierarchyGetReq escHierarchyGetRequest); }
EscalationHierarchyService { public List<EscalationHierarchy> getAllEscalationHierarchy(EscalationHierarchyGetReq escHierarchyGetRequest) { List<EscalationHierarchy> escHierarchyList = escalationHierarchyRepository.getAllEscalationHierarchy(escHierarchyGetRequest); return escHierarchyList; }  List<EscalationHierarchy> createEscalationHierarchy(final String topic, final String key,
			final EscalationHierarchyReq escalationHierarchyRequest); List<EscalationHierarchy> updateEscalationHierarchy(final String topic, final String key,
			final EscalationHierarchyReq escalationHierarchyRequest); List<EscalationHierarchy> create(EscalationHierarchyReq escalationHierarchyRequest); List<EscalationHierarchy> update(EscalationHierarchyReq escalationHierarchyRequest); List<EscalationHierarchy> getAllEscalationHierarchy(EscalationHierarchyGetReq escHierarchyGetRequest); static final Logger logger; }