NotificationRunner implements Runnable { @Override public void run() { AWSXRay.beginDummySegment(); if (NumberUtils.isDigits(jobEvent.getJobId())) { JobInstance job = new JobInstanceDao().findById(Integer.valueOf(jobEvent.getJobId())); if (job != null) { Set<? extends Notification> notifications = getNotifications(job); for (Notification n : notifications) { if (!n.getRecipients().isEmpty()) { if (n.getLifecycleEvents().contains(jobEvent.getEvent())) { sendMail(n); } } } } } else { } AWSXRay.endSegment(); } NotificationRunner(JobEvent jobEvent, MailService mailService, VMTracker tracker); @Override void run();  }
@Test public void testRun_1() throws Exception { NotificationRunner fixture = new NotificationRunner(new JobEvent("", "", JobLifecycleEvent.AGENT_EXCESSIVE_CPU), (MailService) null, new VMTrackerImpl()); fixture.run(); }
@Test public void testRun_2() throws Exception { NotificationRunner fixture = new NotificationRunner(new JobEvent("", "", JobLifecycleEvent.AGENT_EXCESSIVE_CPU), (MailService) null, new VMTrackerImpl()); fixture.run(); }
@Test public void testRun_3() throws Exception { NotificationRunner fixture = new NotificationRunner(new JobEvent("", "", JobLifecycleEvent.AGENT_EXCESSIVE_CPU), (MailService) null, new VMTrackerImpl()); fixture.run(); }
@Test public void testRun_4() throws Exception { NotificationRunner fixture = new NotificationRunner(new JobEvent("", "", JobLifecycleEvent.AGENT_EXCESSIVE_CPU), (MailService) null, new VMTrackerImpl()); fixture.run(); }
@Test public void testRun_5() throws Exception { NotificationRunner fixture = new NotificationRunner(new JobEvent("", "", JobLifecycleEvent.AGENT_EXCESSIVE_CPU), (MailService) null, new VMTrackerImpl()); fixture.run(); }
@Test public void testRun_6() throws Exception { NotificationRunner fixture = new NotificationRunner(new JobEvent("", "", JobLifecycleEvent.AGENT_EXCESSIVE_CPU), (MailService) null, new VMTrackerImpl()); fixture.run(); }
@Test public void testRun_7() throws Exception { NotificationRunner fixture = new NotificationRunner(new JobEvent("", "", JobLifecycleEvent.AGENT_EXCESSIVE_CPU), (MailService) null, new VMTrackerImpl()); fixture.run(); }