@Test public void verifyBuildup() throws JobNotFoundException { JobDescriptor jobDescriptor = new JobDescriptor( "", jobId, UUID.randomUUID(), null, null, null ); Job bulkJobs = BulkTestUtils.getBulkJobFactory().jobsFrom( jobDescriptor ); assertNotNull( bulkJobs ); }
@Override public Job jobsFrom( JobDescriptor descriptor ) throws JobNotFoundException { Job job = context.getBean( descriptor.getJobName(), Job.class ); if ( job == null ) { String error = String.format( "Could not find job implementation for job name %s", descriptor.getJobName() ); logger.error( error ); throw new JobNotFoundException( error ); } return job; }
UsergridJobFactory implements JobFactory { @Override public Job jobsFrom( JobDescriptor descriptor ) throws JobNotFoundException { Job job = context.getBean( descriptor.getJobName(), Job.class ); if ( job == null ) { String error = String.format( "Could not find job implementation for job name %s", descriptor.getJobName() ); logger.error( error ); throw new JobNotFoundException( error ); } return job; } }
UsergridJobFactory implements JobFactory { @Override public Job jobsFrom( JobDescriptor descriptor ) throws JobNotFoundException { Job job = context.getBean( descriptor.getJobName(), Job.class ); if ( job == null ) { String error = String.format( "Could not find job implementation for job name %s", descriptor.getJobName() ); logger.error( error ); throw new JobNotFoundException( error ); } return job; }  }
UsergridJobFactory implements JobFactory { @Override public Job jobsFrom( JobDescriptor descriptor ) throws JobNotFoundException { Job job = context.getBean( descriptor.getJobName(), Job.class ); if ( job == null ) { String error = String.format( "Could not find job implementation for job name %s", descriptor.getJobName() ); logger.error( error ); throw new JobNotFoundException( error ); } return job; }  @Override Job jobsFrom( JobDescriptor descriptor ); }
UsergridJobFactory implements JobFactory { @Override public Job jobsFrom( JobDescriptor descriptor ) throws JobNotFoundException { Job job = context.getBean( descriptor.getJobName(), Job.class ); if ( job == null ) { String error = String.format( "Could not find job implementation for job name %s", descriptor.getJobName() ); logger.error( error ); throw new JobNotFoundException( error ); } return job; }  @Override Job jobsFrom( JobDescriptor descriptor );  }