RoboconfScheduler implements IScheduler { @Override public ScheduledJob findJobProperties( String jobId ) { this.logger.fine( "Roboconf's scheduler is about to find the properties of the job whose ID is " + jobId ); ScheduledJob result = null; File f = getJobFile( jobId ); if( f.isFile()) { Properties props = Utils.readPropertiesFileQuietly( f, this.logger ); props.put( JOB_ID, jobId ); result = from( props ); } return result; }  void start(); void stop(); void setManager( Manager manager ); @Override void loadJobs(); @Override List<ScheduledJob> listJobs(); @Override String saveJob( String jobId, String jobName, String cmdName, String cron, String appName ); @Override void deleteJob( String jobId ); @Override ScheduledJob findJobProperties( String jobId );  }
@Test public void testFindJobProperties_inexitingJob() throws Exception { ScheduledJob job = this.scheduler.findJobProperties( "inexisting" ); Assert.assertNull( job ); }