@Test public void test_that_escalation_service_is_called() throws Exception { EscalationJob escalationJob = new EscalationJob(escalationService); escalationJob.escalate(); verify(escalationService).escalateComplaintForAllTenants();; }
@Scheduled(fixedDelayString = "${escalation.interval}") public void escalate() { escalationService.escalateComplaintForAllTenants(); }
EscalationJob { @Scheduled(fixedDelayString = "${escalation.interval}") public void escalate() { escalationService.escalateComplaintForAllTenants(); } }
EscalationJob { @Scheduled(fixedDelayString = "${escalation.interval}") public void escalate() { escalationService.escalateComplaintForAllTenants(); } EscalationJob(EscalationService escalationService); }
EscalationJob { @Scheduled(fixedDelayString = "${escalation.interval}") public void escalate() { escalationService.escalateComplaintForAllTenants(); } EscalationJob(EscalationService escalationService); @Scheduled(fixedDelayString = "${escalation.interval}") void escalate(); }
EscalationJob { @Scheduled(fixedDelayString = "${escalation.interval}") public void escalate() { escalationService.escalateComplaintForAllTenants(); } EscalationJob(EscalationService escalationService); @Scheduled(fixedDelayString = "${escalation.interval}") void escalate();  }