@Test public void test_should_return_escalation_hours_for_given_criteria() { final EscalationHoursSearchCriteria searchCriteria = EscalationHoursSearchCriteria.builder().build(); final int expectedEscalationHours = 3; when(escalationRepository.getEscalationHours(searchCriteria)).thenReturn(expectedEscalationHours); final int actualEscalationHours = escalationService.getEscalationHours(searchCriteria); assertEquals(expectedEscalationHours, actualEscalationHours); }
public int getEscalationHours(EscalationHoursSearchCriteria searchCriteria) { return escalationRepository.getEscalationHours(searchCriteria); }
EscalationService { public int getEscalationHours(EscalationHoursSearchCriteria searchCriteria) { return escalationRepository.getEscalationHours(searchCriteria); } }
EscalationService { public int getEscalationHours(EscalationHoursSearchCriteria searchCriteria) { return escalationRepository.getEscalationHours(searchCriteria); } EscalationService(EscalationRepository escalationRepository); }
EscalationService { public int getEscalationHours(EscalationHoursSearchCriteria searchCriteria) { return escalationRepository.getEscalationHours(searchCriteria); } EscalationService(EscalationRepository escalationRepository); int getEscalationHours(EscalationHoursSearchCriteria searchCriteria); EscalationTimeTypeReq create(EscalationTimeTypeReq escalationTimeTypeReq); EscalationTimeTypeReq update(EscalationTimeTypeReq escalationTimeTypeReq); List<EscalationTimeType> getAllEscalationTimeTypes(final EscalationTimeTypeGetReq escalationGetRequest); boolean checkRecordExists(EscalationTimeTypeReq escalationTimeTypeReq); }
EscalationService { public int getEscalationHours(EscalationHoursSearchCriteria searchCriteria) { return escalationRepository.getEscalationHours(searchCriteria); } EscalationService(EscalationRepository escalationRepository); int getEscalationHours(EscalationHoursSearchCriteria searchCriteria); EscalationTimeTypeReq create(EscalationTimeTypeReq escalationTimeTypeReq); EscalationTimeTypeReq update(EscalationTimeTypeReq escalationTimeTypeReq); List<EscalationTimeType> getAllEscalationTimeTypes(final EscalationTimeTypeGetReq escalationGetRequest); boolean checkRecordExists(EscalationTimeTypeReq escalationTimeTypeReq); static final Logger logger; }