@Test public void findDependentJob_Found() throws Exception { assertEquals(job, manager.findDependentJob(spawn, "my-command")); }
@Override protected Job findDependentJob(Spawn spawn, String entityKey) { for (Job job : spawn.listJobs()) { if (job.getCommand() != null && job.getCommand().equals(entityKey)) { return job; } } return null; }
JobCommandManager extends AbstractJobEntityManager<JobCommand> { @Override protected Job findDependentJob(Spawn spawn, String entityKey) { for (Job job : spawn.listJobs()) { if (job.getCommand() != null && job.getCommand().equals(entityKey)) { return job; } } return null; } }
JobCommandManager extends AbstractJobEntityManager<JobCommand> { @Override protected Job findDependentJob(Spawn spawn, String entityKey) { for (Job job : spawn.listJobs()) { if (job.getCommand() != null && job.getCommand().equals(entityKey)) { return job; } } return null; } JobCommandManager(Spawn spawn); }
JobCommandManager extends AbstractJobEntityManager<JobCommand> { @Override protected Job findDependentJob(Spawn spawn, String entityKey) { for (Job job : spawn.listJobs()) { if (job.getCommand() != null && job.getCommand().equals(entityKey)) { return job; } } return null; } JobCommandManager(Spawn spawn);  }
JobCommandManager extends AbstractJobEntityManager<JobCommand> { @Override protected Job findDependentJob(Spawn spawn, String entityKey) { for (Job job : spawn.listJobs()) { if (job.getCommand() != null && job.getCommand().equals(entityKey)) { return job; } } return null; } JobCommandManager(Spawn spawn);   }